org.gloin.resource
Class SerializableByteArrayInputStream
java.lang.Object
|
+--java.io.InputStream
|
+--org.gloin.resource.SerializableByteArrayInputStream
- All Implemented Interfaces:
- java.io.Serializable
- public class SerializableByteArrayInputStream
- extends java.io.InputStream
- implements java.io.Serializable
Serializable byte array input stream. Permit sending of resource
bytes without having to run an http server.
- See Also:
- Serialized Form
|
Method Summary |
int |
available()
|
void |
close()
|
int |
read()
|
java.lang.String |
toString()
Return byte store and stream name as string representation. |
| Methods inherited from class java.io.InputStream |
mark, markSupported, read, read, reset, skip |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SerializableByteArrayInputStream
public SerializableByteArrayInputStream(byte[] bytes)
read
public int read()
throws java.io.IOException
- Overrides:
read in class java.io.InputStream
available
public int available()
throws java.io.IOException
- Overrides:
available in class java.io.InputStream
close
public void close()
throws java.io.IOException
- Overrides:
close in class java.io.InputStream
toString
public java.lang.String toString()
- Return byte store and stream name as string representation.
- Overrides:
toString in class java.lang.Object