public final class TextSpecInfoAtom extends RecordAtom
Constructor and Description |
---|
TextSpecInfoAtom()
Constructs an empty atom, with a default run of size 1
|
TextSpecInfoAtom(byte[] source, int start, int len)
Constructs the link related atom record from its source data.
|
Modifier and Type | Method and Description |
---|---|
int |
getCharactersCovered()
Get the number of characters covered by this records
(获取此记录覆盖的字符数)
|
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
long |
getRecordType()
Gets the record type.
(获取记录类型。)
|
TextSpecInfoRun[] |
getTextSpecInfoRuns() |
void |
reset(int size)
Reset the content to one info run with the default values
(将内容重置为使用默认值运行的一个信息)
|
void |
setParentSize(int size)
Adapts the size by enlarging the last
TextSpecInfoRun or chopping the runs to the given length
(通过扩大最后一个 TextSpecInfoRun 或将运行切割到给定长度来调整大小)
|
void |
setTextSize(int size)
Update the text length
(更新文本长度)
|
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
public TextSpecInfoAtom()
public TextSpecInfoAtom(byte[] source, int start, int len)
source
- the source data as a byte array.
(source - 作为字节数组的源数据。)
start
- the start offset into the byte array.
(start - 字节数组的起始偏移量。)
len
- the length of the slice in the byte array.
(len - 字节数组中切片的长度。)
public long getRecordType()
getRecordType
in class
Record
(类 Record 中的 getRecordType)
public void writeOut(java.io.OutputStream out) throws java.io.IOException
public void setTextSize(int size)
size
- the text length
(size - 文本长度)
public void reset(int size)
size
- the site of parent text
(size - 父文本的位置)
public void setParentSize(int size)
TextSpecInfoRun
or chopping the runs to the given length
(通过扩大最后一个 TextSpecInfoRun 或将运行切割到给定长度来调整大小)
size
-
(尺寸 -)
public int getCharactersCovered()
public TextSpecInfoRun[] getTextSpecInfoRuns()
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.