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:
ParentAwareRecord
A TextHeaderAtom (type 3999). Holds information on what kind of
text is contained in the TextBytesAtom / TextCharsAtom that follows
straight after
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a new TextHeader Atom, for an unknown type of textprotectedTextHeaderAtom(byte[] source, int start, int len) For the TextHeader Atom -
Method Summary
Modifier and TypeMethodDescriptionintgetIndex()longWe are of type 3999intvoidsetIndex(int index) voidsetParentRecord(RecordContainer record) voidsetTextType(int type) voidwriteOut(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, isAnAtomMethods inherited from class org.apache.poi.hslf.record.Record
buildRecordAtOffset, createRecordForType, findChildRecords, writeLittleEndian, writeLittleEndian
-
Field Details
-
_type
public static final long _type -
TITLE_TYPE
public static final int TITLE_TYPE- See Also:
-
BODY_TYPE
public static final int BODY_TYPE- See Also:
-
NOTES_TYPE
public static final int NOTES_TYPE- See Also:
-
OTHER_TYPE
public static final int OTHER_TYPE- See Also:
-
CENTRE_BODY_TYPE
public static final int CENTRE_BODY_TYPE- See Also:
-
CENTER_TITLE_TYPE
public static final int CENTER_TITLE_TYPE- See Also:
-
HALF_BODY_TYPE
public static final int HALF_BODY_TYPE- See Also:
-
QUARTER_BODY_TYPE
public static final int QUARTER_BODY_TYPE- See Also:
-
-
Constructor Details
-
TextHeaderAtom
protected TextHeaderAtom(byte[] source, int start, int len) For the TextHeader Atom -
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) -
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:
getParentRecordin interfaceParentAwareRecord
-
setParentRecord
- Specified by:
setParentRecordin interfaceParentAwareRecord
-
getRecordType
public long getRecordType()We are of type 3999- Specified by:
getRecordTypein classRecord
-
writeOut
Write the contents of the record back, so it can be written to disk- Specified by:
writeOutin classRecord- Throws:
IOException
-