org.apache.poi.util
Class LittleEndianByteArrayInputStream
- java.lang.Object
-
- org.apache.poi.util.LittleEndianByteArrayInputStream
-
- All Implemented Interfaces:
- LittleEndianInput
public final class LittleEndianByteArrayInputStream extends java.lang.Object implements LittleEndianInput
Adapts a plain byte array toLittleEndianInput
-
-
Constructor Summary
Constructors Constructor and Description LittleEndianByteArrayInputStream(byte[] buf)LittleEndianByteArrayInputStream(byte[] buf, int startOffset)LittleEndianByteArrayInputStream(byte[] buf, int startOffset, int maxReadLen)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intavailable()intgetReadIndex()bytereadByte()doublereadDouble()voidreadFully(byte[] buf)voidreadFully(byte[] buf, int off, int len)intreadInt()longreadLong()shortreadShort()intreadUByte()intreadUShort()
-
-
-
Constructor Detail
-
LittleEndianByteArrayInputStream
public LittleEndianByteArrayInputStream(byte[] buf, int startOffset, int maxReadLen)
-
LittleEndianByteArrayInputStream
public LittleEndianByteArrayInputStream(byte[] buf, int startOffset)
-
LittleEndianByteArrayInputStream
public LittleEndianByteArrayInputStream(byte[] buf)
-
-
Method Detail
-
available
public int available()
- Specified by:
availablein interfaceLittleEndianInput
-
getReadIndex
public int getReadIndex()
-
readByte
public byte readByte()
- Specified by:
readBytein interfaceLittleEndianInput
-
readInt
public int readInt()
- Specified by:
readIntin interfaceLittleEndianInput
-
readLong
public long readLong()
- Specified by:
readLongin interfaceLittleEndianInput
-
readShort
public short readShort()
- Specified by:
readShortin interfaceLittleEndianInput
-
readUByte
public int readUByte()
- Specified by:
readUBytein interfaceLittleEndianInput
-
readUShort
public int readUShort()
- Specified by:
readUShortin interfaceLittleEndianInput
-
readFully
public void readFully(byte[] buf, int off, int len)- Specified by:
readFullyin interfaceLittleEndianInput
-
readFully
public void readFully(byte[] buf)
- Specified by:
readFullyin interfaceLittleEndianInput
-
readDouble
public double readDouble()
- Specified by:
readDoublein interfaceLittleEndianInput
-
-
DataMelt 3.0 © DataMelt by jWork.ORG