org.apache.poi.util
Class LittleEndianByteArrayInputStream
java.lang.Object
   java.io.InputStream
java.io.InputStream
       java.io.ByteArrayInputStream
java.io.ByteArrayInputStream
           org.apache.poi.util.LittleEndianByteArrayInputStream
org.apache.poi.util.LittleEndianByteArrayInputStream
- All Implemented Interfaces: 
- java.io.Closeable, LittleEndianInput
- public class LittleEndianByteArrayInputStream 
- extends java.io.ByteArrayInputStream- implements LittleEndianInput
Adapts a plain byte array to LittleEndianInput
 
| Fields inherited from class java.io.ByteArrayInputStream | 
| buf, count, mark, pos | 
 
 
 
| Methods inherited from class java.io.ByteArrayInputStream | 
| available, close, mark, markSupported, read, read, reset, skip | 
 
| Methods inherited from class java.io.InputStream | 
| read | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
 
LittleEndianByteArrayInputStream
public LittleEndianByteArrayInputStream(byte[] buf,
                                        int startOffset,
                                        int maxReadLen)
LittleEndianByteArrayInputStream
public LittleEndianByteArrayInputStream(byte[] buf,
                                        int startOffset)
LittleEndianByteArrayInputStream
public LittleEndianByteArrayInputStream(byte[] buf)
checkPosition
protected void checkPosition(int i)
- 
 
- 
 
getReadIndex
public int getReadIndex()
- 
 
- 
 
setReadIndex
public void setReadIndex(int pos)
- 
 
- 
 
readByte
public byte readByte()
- 
- Specified by:
- readBytein interface- LittleEndianInput
 
- 
 
readInt
public int readInt()
- 
- Specified by:
- readIntin interface- LittleEndianInput
 
- 
 
readLong
public long readLong()
- 
- Specified by:
- readLongin interface- LittleEndianInput
 
- 
 
readShort
public short readShort()
- 
- Specified by:
- readShortin interface- LittleEndianInput
 
- 
 
readUByte
public int readUByte()
- 
- Specified by:
- readUBytein interface- LittleEndianInput
 
- 
 
readUShort
public int readUShort()
- 
- Specified by:
- readUShortin interface- LittleEndianInput
 
- 
 
readUInt
public long readUInt()
- 
 
- 
 
readDouble
public double readDouble()
- 
- Specified by:
- readDoublein interface- LittleEndianInput
 
- 
 
readFully
public void readFully(byte[] buffer,
                      int off,
                      int len)
- 
- Specified by:
- readFullyin interface- LittleEndianInput
 
- 
 
readFully
public void readFully(byte[] buffer)
- 
- Specified by:
- readFullyin interface- LittleEndianInput
 
- 
 
readPlain
public void readPlain(byte[] buf,
                      int off,
                      int len)
- Description copied from interface: LittleEndianInput
- Usually acts the same as LittleEndianInput.readFully(byte[], int, int), but
 for an encrypted stream the raw (unencrypted) data is filled
 
- 
- Specified by:
- readPlainin interface- LittleEndianInput
 
- 
- Parameters:
- buf- the byte array to receive the bytes
- off- the start offset into the byte array
- len- the amount of bytes to fill