|
||||||||||
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[] byteBuffer)
|
Method Summary | |
void |
read(byte[] buf)
Reads buf.length bytes from the input stream
and stores them in the supplied buffer. |
void |
setBuffer(byte[] byteBuffer)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ByteArrayInStream(byte[] byteBuffer)
Method Detail |
public void setBuffer(byte[] byteBuffer)
public void read(byte[] buf) throws java.io.IOException
InStream
buf.length
bytes from the input stream
and stores them in the supplied buffer.
read
in interface InStream
buf
- the buffer to receive the bytes
java.io.IOException
- if an I/O error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |