Package org.apache.poi.hslf.record
Class CString
- java.lang.Object
-
- org.apache.poi.hslf.record.Record
-
- org.apache.poi.hslf.record.RecordAtom
-
- org.apache.poi.hslf.record.CString
-
- All Implemented Interfaces:
GenericRecord
public final class CString extends RecordAtom
A CString (type 4026). Holds a unicode string, and the first two bytes of the record header normally encode the count. Typically attached to some complex sequence of records, eg Comments.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Supplier<?>>getGenericProperties()intgetOptions()Grabs the count, from the first two bytes of the header.longgetRecordType()We are of type 4026StringgetText()Grabs the text.voidsetOptions(int count)Sets the count The meaning of the count is specific to the type of the parent recordvoidsetText(String text)Updates the text in the Atom.StringtoString()Gets a string representation of this object, primarily for debugging.voidwriteOut(OutputStream out)Write the contents of the record back, so it can be written to disk-
Methods inherited from class org.apache.poi.hslf.record.RecordAtom
getChildRecords, getMaxRecordLength, isAnAtom, setMaxRecordLength
-
Methods inherited from class org.apache.poi.hslf.record.Record
buildRecordAtOffset, createRecordForType, findChildRecords, getGenericChildren, getGenericRecordType, writeLittleEndian, writeLittleEndian
-
-
-
-
Method Detail
-
getText
public String getText()
Grabs the text. Nevernull
-
setText
public void setText(String text)
Updates the text in the Atom.
-
getOptions
public int getOptions()
Grabs the count, from the first two bytes of the header. The meaning of the count is specific to the type of the parent record
-
setOptions
public void setOptions(int count)
Sets the count The meaning of the count is specific to the type of the parent record
-
getRecordType
public long getRecordType()
We are of type 4026- Specified by:
getRecordTypein classRecord
-
writeOut
public void writeOut(OutputStream out) throws IOException
Write the contents of the record back, so it can be written to disk- Specified by:
writeOutin classRecord- Throws:
IOException
-
toString
public String toString()
Gets a string representation of this object, primarily for debugging.
-
-