| |
|
| java.lang.Object java.io.InputStream org.apache.poi.hssf.record.RecordInputStream
All known Subclasses: org.apache.poi.hssf.record.TestcaseRecordInputStream,
RecordInputStream | public class RecordInputStream extends InputStream (Code) | | Title: Record Input Stream
Description: Wraps a stream and provides helper methods for the construction of records.
author: Jason Height (jheight @ apache dot org) |
MAX_RECORD_DATA_SIZE | final public static short MAX_RECORD_DATA_SIZE(Code) | | Maximum size of a single record (minus the 4 byte header) without a continue
|
NAN_data | byte[] NAN_data(Code) | | |
currentLength | protected short currentLength(Code) | | |
currentSid | protected short currentSid(Code) | | |
data | protected byte[] data(Code) | | |
nextSid | protected short nextSid(Code) | | |
recordOffset | protected short recordOffset(Code) | | |
checkRecordPosition | protected void checkRecordPosition()(Code) | | |
getAutoContinue | public boolean getAutoContinue()(Code) | | |
getLength | public short getLength()(Code) | | |
getNANData | public byte[] getNANData()(Code) | | |
getPos | public long getPos()(Code) | | |
getRecordOffset | public short getRecordOffset()(Code) | | |
getSid | public short getSid()(Code) | | |
hasNextRecord | public boolean hasNextRecord()(Code) | | |
isContinueNext | public boolean isContinueNext()(Code) | | Returns true iif a Continue record is next in the excel stream
True when a ContinueRecord is next. |
nextRecord | public void nextRecord() throws RecordFormatException(Code) | | Moves to the next record in the stream.
Note: The auto continue flag is reset to true
|
read | public int read() throws IOException(Code) | | This method will read a byte from the current record
|
readAllContinuedRemainder | public byte[] readAllContinuedRemainder()(Code) | | Reads all byte data for the current record, including any
that overlaps into any following continue records.
|
readByte | public byte readByte()(Code) | | |
readCompressedUnicode | public String readCompressedUnicode(int length)(Code) | | |
readDouble | public double readDouble()(Code) | | |
readInt | public int readInt()(Code) | | |
readLong | public long readLong()(Code) | | |
readRemainder | public byte[] readRemainder()(Code) | | Returns the remaining bytes for the current record.
The remaining bytes of the current record. |
readShort | public short readShort()(Code) | | |
readShortArray | public short[] readShortArray()(Code) | | |
readUShort | public int readUShort()(Code) | | |
readUnicodeLEString | public String readUnicodeLEString(int length)(Code) | | given a byte array of 16-bit unicode characters, compress to 8-bit and
return a string
{ 0x16, 0x00 } -0x16
Parameters: length - the length of the final string the converted string exception: IllegalArgumentException - if len is too large (i.e.,there is not enough data in string to create a String of that length) |
readUnicodeString | public UnicodeString readUnicodeString()(Code) | | Returns an excel style unicode string from the bytes reminaing in the record.
Note: Unicode strings differ from normal strings due to the addition of
formatting information.
The unicode string representation of the remaining bytes. |
remaining | public int remaining()(Code) | | The remaining number of bytes in the current record.
The number of bytes remaining in the current record |
setAutoContinue | public void setAutoContinue(boolean enable)(Code) | | |
|
|
|