Package org.locationtech.jts.io
Class ByteOrderDataInStream
java.lang.Object
org.locationtech.jts.io.ByteOrderDataInStream
Allows reading a stream of Java primitive datatypes from an underlying
InStream
,
with the representation being in either common byte ordering.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
byteOrder
private int byteOrder -
stream
-
buf1
private byte[] buf1 -
buf4
private byte[] buf4 -
buf8
private byte[] buf8
-
-
Constructor Details
-
ByteOrderDataInStream
public ByteOrderDataInStream() -
ByteOrderDataInStream
-
-
Method Details
-
setInStream
Allows a single ByteOrderDataInStream to be reused on multiple InStreams.- Parameters:
stream
-
-
setOrder
public void setOrder(int byteOrder) -
readByte
Reads a byte value- Returns:
- the byte read
- Throws:
IOException
-
readInt
- Throws:
IOException
-
readLong
- Throws:
IOException
-
readDouble
- Throws:
IOException
-