|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.poi.hssf.record.cont.ContinuableRecordOutput
public final class ContinuableRecordOutput
An augmented LittleEndianOutput used for serialization of ContinuableRecords.
This class keeps track of how much remaining space is available in the current BIFF record and
can start new ContinueRecords as required.
| Method Summary | |
|---|---|
static ContinuableRecordOutput |
createForCountingOnly()
|
int |
getAvailableSpace()
|
int |
getTotalSize()
|
void |
write(byte[] b)
|
void |
write(byte[] b,
int offset,
int len)
|
void |
writeByte(int v)
|
void |
writeContinue()
Terminates the current record and starts a new ContinueRecord (regardless
of how much space is still available in the current record). |
void |
writeContinueIfRequired(int requiredContinuousSize)
|
void |
writeDouble(double v)
|
void |
writeInt(int v)
|
void |
writeLong(long v)
|
void |
writeShort(int v)
|
void |
writeString(java.lang.String text,
int numberOfRichTextRuns,
int extendedDataSize)
Writes a unicode string complete with header and character data. |
void |
writeStringData(java.lang.String text)
Writes the 'optionFlags' byte and encoded character data of a unicode string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ContinuableRecordOutput createForCountingOnly()
public int getTotalSize()
public int getAvailableSpace()
public void writeContinue()
ContinueRecord (regardless
of how much space is still available in the current record).
public void writeContinueIfRequired(int requiredContinuousSize)
public void writeStringData(java.lang.String text)
ContinueRecord) from the
first chunk of character data it refers to.ContinueRecord
public void writeString(java.lang.String text,
int numberOfRichTextRuns,
int extendedDataSize)
| Mask | Description |
|---|---|
| 0x01 | is16bitEncoded |
| 0x04 | hasExtendedData |
| 0x08 | isRichText |
ContinueRecord) from the
first chunk of character data (i.e. the first character is always encoded in the same
record as the string header).
public void write(byte[] b)
write in interface LittleEndianOutput
public void write(byte[] b,
int offset,
int len)
write in interface LittleEndianOutputpublic void writeByte(int v)
writeByte in interface LittleEndianOutputpublic void writeDouble(double v)
writeDouble in interface LittleEndianOutputpublic void writeInt(int v)
writeInt in interface LittleEndianOutputpublic void writeLong(long v)
writeLong in interface LittleEndianOutputpublic void writeShort(int v)
writeShort in interface LittleEndianOutput
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||