public class ByteArrayStreamData extends java.lang.Object implements StreamData, java.io.Externalizable
![]() |
![]() |
| Constructor and Description |
|---|
ByteArrayStreamData() |
ByteArrayStreamData(byte[] dat) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
byte[] |
getBytes() |
java.io.InputStream |
getInputStream()
get an InputStream to read the state of the obect
|
long |
getLength()
get the size of data held in the object
|
java.io.OutputStream |
getOutputStream()
Get an OutputStream used to modify the state of the object
|
int |
hashCode() |
void |
readExternal(java.io.ObjectInput in) |
java.lang.String |
toString() |
void |
writeExternal(java.io.ObjectOutput out) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitappend, read, writepublic long getLength()
StreamDatagetLength in interface StreamDatapublic byte[] getBytes()
public java.io.InputStream getInputStream()
StreamDatagetInputStream in interface StreamDatapublic java.io.OutputStream getOutputStream()
StreamDatagetOutputStream in interface StreamDatapublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundException