Class SimpleDataInput
java.lang.Object
org.eclipse.jgit.internal.storage.file.SimpleDataInput
- All Implemented Interfaces:
DataInput
An implementation of DataInput that only handles readInt() and readLong()
using the Git conversion utilities for network byte order handling. This is
needed to read
EWAHCompressedBitmaps.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
fd
-
buf
private final byte[] buf
-
-
Constructor Details
-
SimpleDataInput
SimpleDataInput(InputStream fd)
-
-
Method Details
-
readInt
- Specified by:
readIntin interfaceDataInput- Throws:
IOException
-
readLong
- Specified by:
readLongin interfaceDataInput- Throws:
IOException
-
readUnsignedInt
Read unsigned int- Returns:
- a long.
- Throws:
IOException- if any.
-
readFully
- Specified by:
readFullyin interfaceDataInput- Throws:
IOException
-
readFully
- Specified by:
readFullyin interfaceDataInput- Throws:
IOException
-
skipBytes
- Specified by:
skipBytesin interfaceDataInput- Throws:
IOException
-
readBoolean
- Specified by:
readBooleanin interfaceDataInput- Throws:
IOException
-
readByte
- Specified by:
readBytein interfaceDataInput- Throws:
IOException
-
readUnsignedByte
- Specified by:
readUnsignedBytein interfaceDataInput- Throws:
IOException
-
readShort
- Specified by:
readShortin interfaceDataInput- Throws:
IOException
-
readUnsignedShort
- Specified by:
readUnsignedShortin interfaceDataInput- Throws:
IOException
-
readChar
- Specified by:
readCharin interfaceDataInput- Throws:
IOException
-
readFloat
- Specified by:
readFloatin interfaceDataInput- Throws:
IOException
-
readDouble
- Specified by:
readDoublein interfaceDataInput- Throws:
IOException
-
readLine
- Specified by:
readLinein interfaceDataInput- Throws:
IOException
-
readUTF
- Specified by:
readUTFin interfaceDataInput- Throws:
IOException
-