org.apache.poi.util
Class LittleEndianInputStream
java.lang.Object
   java.io.InputStream
java.io.InputStream
       java.io.FilterInputStream
java.io.FilterInputStream
           org.apache.poi.util.LittleEndianInputStream
org.apache.poi.util.LittleEndianInputStream
- All Implemented Interfaces: 
- java.io.Closeable, LittleEndianInput
- Direct Known Subclasses: 
- ChunkedCipherInputStream
- public class LittleEndianInputStream 
- extends java.io.FilterInputStream- implements LittleEndianInput
Wraps an InputStream providing LittleEndianInput
 This class does not buffer any input, so the stream read position maintained
 by this class is consistent with that of the inner stream.
 
| Fields inherited from class java.io.FilterInputStream | 
| in | 
 
 
 
| Methods inherited from class java.io.FilterInputStream | 
| close, mark, markSupported, read, read, read, reset, skip | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
LittleEndianInputStream
public LittleEndianInputStream(java.io.InputStream is)
available
public int available()
- 
- Specified by:
- availablein interface- LittleEndianInput
- Overrides:
- availablein class- java.io.FilterInputStream
 
- 
 
readByte
public byte readByte()
- 
- Specified by:
- readBytein interface- LittleEndianInput
 
- 
 
readUByte
public int readUByte()
- 
- Specified by:
- readUBytein interface- LittleEndianInput
 
- 
 
readDouble
public double readDouble()
- 
- Specified by:
- readDoublein interface- LittleEndianInput
 
- 
 
readInt
public int readInt()
- 
- Specified by:
- readIntin interface- LittleEndianInput
 
- 
 
readUInt
public long readUInt()
- get an unsigned int value from an InputStream
 
- 
 
- 
- Returns:
- the unsigned int (32-bit) value
- Throws:
- java.lang.RuntimeException- wraps any IOException thrown from reading the stream.
 
readLong
public long readLong()
- 
- Specified by:
- readLongin interface- LittleEndianInput
 
- 
 
readShort
public short readShort()
- 
- Specified by:
- readShortin interface- LittleEndianInput
 
- 
 
readUShort
public int readUShort()
- 
- Specified by:
- readUShortin interface- LittleEndianInput
 
- 
 
readFully
public void readFully(byte[] buf)
- 
- Specified by:
- readFullyin interface- LittleEndianInput
 
- 
 
readFully
public void readFully(byte[] buf,
                      int off,
                      int len)
- 
- 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