Streamablepublic interface Streamable Example usage:
byte[] data = new byte[1024];
Streamable st = ....;
while ( !st.eof() ) {
int length = st.read(data,0,data.length);
String s = new String(data,0,length);
System.out.println(s);
}
|
Methods Summary |
---|
public boolean | eof()returns true if the stream has reached its end
| public int | read(byte[] data, int offset, int length)read data into the byte array starting at offset
| public int | write(byte[] data, int offset, int length)write data into the byte array starting at offset, maximum bytes read are (data.length-offset)
|
|