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, wait
append, read, write
public long getLength()
StreamData
getLength
in interface StreamData
public byte[] getBytes()
public java.io.InputStream getInputStream()
StreamData
getInputStream
in interface StreamData
public java.io.OutputStream getOutputStream()
StreamData
getOutputStream
in interface StreamData
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException