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
A TextHeaderAtom (type 3999). Holds information on what kind of
text is contained in the TextBytesAtom / TextCharsAtom that follows
straight after
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getIndex()
long
We are of type 3999int
void
setIndex
(int index) void
setParentRecord
(RecordContainer record) void
setTextType
(int type) void
setTextTypeEnum
(TextShape.TextPlaceholder placeholder) void
writeOut
(OutputStream out) Write the contents of the record back, so it can be written to diskMethods 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
-
Field Details
-
_type
public static final long _type
-
-
Constructor Details
-
TextHeaderAtom
public TextHeaderAtom()Create a new TextHeader Atom, for an unknown type of text
-
-
Method Details
-
getTextType
public int getTextType() -
setTextType
public void setTextType(int type) -
getTextTypeEnum
-
setTextTypeEnum
-
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
- Specified by:
getParentRecord
in interfaceParentAwareRecord
-
setParentRecord
- Specified by:
setParentRecord
in interfaceParentAwareRecord
-
getRecordType
public long getRecordType()We are of type 3999- Specified by:
getRecordType
in classRecord
-
writeOut
Write the contents of the record back, so it can be written to disk- Specified by:
writeOut
in classRecord
- Throws:
IOException
-
getGenericProperties
- Specified by:
getGenericProperties
in interfaceGenericRecord
-