Package org.apache.poi.hslf.record
Class TextHeaderAtom
- java.lang.Object
-
- org.apache.poi.hslf.record.Record
-
- org.apache.poi.hslf.record.RecordAtom
-
- org.apache.poi.hslf.record.TextHeaderAtom
-
- All Implemented Interfaces:
GenericRecord,ParentAwareRecord
public final class TextHeaderAtom extends RecordAtom implements ParentAwareRecord
A TextHeaderAtom (type 3999). Holds information on what kind of text is contained in the TextBytesAtom / TextCharsAtom that follows straight after
-
-
Constructor Summary
Constructors Modifier Constructor Description TextHeaderAtom()Create a new TextHeader Atom, for an unknown type of textprotectedTextHeaderAtom(byte[] source, int start, int len)For the TextHeader Atom
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Supplier<?>>getGenericProperties()intgetIndex()RecordContainergetParentRecord()longgetRecordType()We are of type 3999intgetTextType()TextShape.TextPlaceholdergetTextTypeEnum()voidsetIndex(int index)voidsetParentRecord(RecordContainer record)voidsetTextType(int type)voidsetTextTypeEnum(TextShape.TextPlaceholder placeholder)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
-
getTextType
public int getTextType()
-
setTextType
public void setTextType(int type)
-
getTextTypeEnum
public TextShape.TextPlaceholder getTextTypeEnum()
-
setTextTypeEnum
public void setTextTypeEnum(TextShape.TextPlaceholder placeholder)
-
getIndex
public int getIndex()
- Returns:
- 0-based index of the text run in the SLWT container
-
setIndex
public void setIndex(int index)
- Parameters:
index- 0-based index of the text run in the SLWT container
-
getParentRecord
public RecordContainer getParentRecord()
- Specified by:
getParentRecordin interfaceParentAwareRecord
-
setParentRecord
public void setParentRecord(RecordContainer record)
- Specified by:
setParentRecordin interfaceParentAwareRecord
-
getRecordType
public long getRecordType()
We are of type 3999- 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
-
getGenericProperties
public Map<String,Supplier<?>> getGenericProperties()
- Specified by:
getGenericPropertiesin interfaceGenericRecord
-
-