Class ByteArrayInStream
java.lang.Object
org.locationtech.jts.io.ByteArrayInStream
- All Implemented Interfaces:
InStream
-
Constructor Summary
ConstructorsConstructorDescriptionByteArrayInStream(byte[] buffer) Creates a new stream based on the given buffer. -
Method Summary
-
Constructor Details
-
ByteArrayInStream
public ByteArrayInStream(byte[] buffer) Creates a new stream based on the given buffer.- Parameters:
buffer- the bytes to read
-
-
Method Details
-
setBytes
public void setBytes(byte[] buffer) Sets this stream to read from the given buffer- Parameters:
buffer- the bytes to read
-
read
-