Package net.morimekta.util.io
Class BigEndianBinaryReader
- java.lang.Object
-
- java.io.InputStream
-
- net.morimekta.util.io.BinaryReader
-
- net.morimekta.util.io.BigEndianBinaryReader
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class BigEndianBinaryReader extends BinaryReader
IO-Optimized binary reader using big-endian integer encoding.
-
-
Constructor Summary
Constructors Constructor Description BigEndianBinaryReader(java.io.InputStream in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
unshift2bytes(int b1, int b2)
protected int
unshift3bytes(int b1, int b2, int b3)
protected int
unshift4bytes(int b1, int b2, int b3, int b4)
protected long
unshift8bytes(long b1, long b2, long b3, long b4, long b5, long b6, long b7, long b8)
-
Methods inherited from class net.morimekta.util.io.BinaryReader
close, expect, expectBinary, expectByte, expectBytes, expectDouble, expectInt, expectLong, expectShort, expectSigned, expectUInt16, expectUInt24, expectUInt32, expectUInt8, expectUnsigned, read, read, read, readIntVarint, readIntZigzag, readLongVarint, readLongZigzag, readUInt16
-
-
-
-
Method Detail
-
unshift2bytes
protected int unshift2bytes(int b1, int b2)
- Specified by:
unshift2bytes
in classBinaryReader
-
unshift3bytes
protected int unshift3bytes(int b1, int b2, int b3)
- Specified by:
unshift3bytes
in classBinaryReader
-
unshift4bytes
protected int unshift4bytes(int b1, int b2, int b3, int b4)
- Specified by:
unshift4bytes
in classBinaryReader
-
unshift8bytes
protected long unshift8bytes(long b1, long b2, long b3, long b4, long b5, long b6, long b7, long b8)
- Specified by:
unshift8bytes
in classBinaryReader
-
-