org.apache.poi.util
public final class LittleEndianByteArrayInputStream extends java.io.ByteArrayInputStream implements LittleEndianInput
LittleEndianInput
Constructor and Description |
---|
LittleEndianByteArrayInputStream(byte[] buf) |
LittleEndianByteArrayInputStream(byte[] buf,
int startOffset) |
LittleEndianByteArrayInputStream(byte[] buf,
int startOffset,
int maxReadLen) |
Modifier and Type | Method and Description |
---|---|
int |
getReadIndex() |
byte |
readByte() |
double |
readDouble() |
void |
readFully(byte[] buffer) |
void |
readFully(byte[] buffer,
int off,
int len) |
int |
readInt() |
long |
readLong() |
void |
readPlain(byte[] buf,
int off,
int len)
Usually acts the same as
LittleEndianInput.readFully(byte[], int, int) , but
for an encrypted stream the raw (unencrypted) data is filled |
short |
readShort() |
int |
readUByte() |
int |
readUShort() |
available, close, mark, markSupported, read, read, reset, skip
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
available
public LittleEndianByteArrayInputStream(byte[] buf, int startOffset, int maxReadLen)
public LittleEndianByteArrayInputStream(byte[] buf, int startOffset)
public LittleEndianByteArrayInputStream(byte[] buf)
public int getReadIndex()
public byte readByte()
readByte
in interface LittleEndianInput
public int readInt()
readInt
in interface LittleEndianInput
public long readLong()
readLong
in interface LittleEndianInput
public short readShort()
readShort
in interface LittleEndianInput
public int readUByte()
readUByte
in interface LittleEndianInput
public int readUShort()
readUShort
in interface LittleEndianInput
public double readDouble()
readDouble
in interface LittleEndianInput
public void readFully(byte[] buffer, int off, int len)
readFully
in interface LittleEndianInput
public void readFully(byte[] buffer)
readFully
in interface LittleEndianInput
public void readPlain(byte[] buf, int off, int len)
LittleEndianInput
LittleEndianInput.readFully(byte[], int, int)
, but
for an encrypted stream the raw (unencrypted) data is filledreadPlain
in interface LittleEndianInput
buf
- the byte array to receive the bytesoff
- the start offset into the byte arraylen
- the amount of bytes to fillCopyright 2016 The Apache Software Foundation or its licensors, as applicable.