public final class TextHeaderAtom extends RecordAtom implements ParentAwareRecord
Modifier and Type | Field and Description |
---|---|
static long |
_type |
Modifier | Constructor and Description |
---|---|
|
TextHeaderAtom()
Create a new TextHeader Atom, for an unknown type of text
(为未知类型的文本创建一个新的 TextHeader Atom)
|
protected |
TextHeaderAtom(byte[] source, int start, int len)
For the TextHeader Atom
(对于 TextHeader Atom)
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
int |
getIndex() |
RecordContainer |
getParentRecord() |
long |
getRecordType()
We are of type 3999
(我们属于 3999 型)
|
int |
getTextType() |
TextShape.TextPlaceholder |
getTextTypeEnum() |
void |
setIndex(int index) |
void |
setParentRecord(RecordContainer record) |
void |
setTextType(int type) |
void |
setTextTypeEnum(TextShape.TextPlaceholder placeholder) |
void |
writeOut(java.io.OutputStream out)
Write the contents of the record back, so it can be written to disk
(将记录的内容写回去,这样就可以写入磁盘了)
|
getChildRecords, isAnAtom
buildRecordAtOffset, createRecordForType, findChildRecords, getGenericChildren, getGenericRecordType, writeLittleEndian, writeLittleEndian
protected TextHeaderAtom(byte[] source, int start, int len)
public TextHeaderAtom()
public int getTextType()
public void setTextType(int type)
public TextShape.TextPlaceholder getTextTypeEnum()
public void setTextTypeEnum(TextShape.TextPlaceholder placeholder)
public int getIndex()
public void setIndex(int index)
index
- 0-based index of the text run in the SLWT container
(index - 在 SLWT 容器中运行的文本的从 0 开始的索引)
public RecordContainer getParentRecord()
getParentRecord
in interface
ParentAwareRecord
(接口 ParentAwareRecord 中的 getParentRecord)
public void setParentRecord(RecordContainer record)
setParentRecord
in interface
ParentAwareRecord
(接口 ParentAwareRecord 中的 setParentRecord)
public long getRecordType()
getRecordType
in class
Record
(类 Record 中的 getRecordType)
public void writeOut(java.io.OutputStream out) throws java.io.IOException
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
getGenericProperties
in interface
GenericRecord
(接口 GenericRecord 中的 getGenericProperties)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.