|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vividsolutions.jts.io.ByteArrayInStream
Allows an array of bytes to be used as an InStream.
To optimize memory usage, instances can be reused
with different byte arrays.
| Constructor Summary | |
ByteArrayInStream(byte[] buffer)
Creates a new stream based on the given buffer. |
|
| Method Summary | |
void |
read(byte[] buf)
Reads up to buf.length bytes from the stream into the given byte buffer. |
void |
setBytes(byte[] buffer)
Sets this stream to read from the given buffer |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ByteArrayInStream(byte[] buffer)
buffer - the bytes to read| Method Detail |
public void setBytes(byte[] buffer)
buffer - the bytes to readpublic void read(byte[] buf)
read in interface InStreambuf - the buffer to place the read bytes into
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||