Package org.apache.poi.hslf.record
Class TextCharsAtom
- java.lang.Object
-
- org.apache.poi.hslf.record.Record
-
- org.apache.poi.hslf.record.RecordAtom
-
- org.apache.poi.hslf.record.TextCharsAtom
-
- All Implemented Interfaces:
GenericRecord
public final class TextCharsAtom extends RecordAtom
A TextCharsAtom (type 4000). Holds text in byte swapped unicode form. The trailing return character is always stripped from this
-
-
Constructor Summary
Constructors Modifier Constructor Description TextCharsAtom()Create an empty TextCharsAtomprotectedTextCharsAtom(byte[] source, int start, int len)For the TextChars Atom
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Supplier<?>>getGenericProperties()longgetRecordType()We are of type 4000StringgetText()Grabs the text.voidsetText(String text)Updates the text in the Atom.StringtoString()dump debug info; use getText() to return a string representation of the atomvoidwriteOut(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.
-
setText
public void setText(String text)
Updates the text in the Atom.
-
getRecordType
public long getRecordType()
We are of type 4000- 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()
dump debug info; use getText() to return a string representation of the atom
-
-