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 |
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.start
- the start offset into the byte array.len
- the length of the slice in the byte array.public long getRecordType()
getRecordType
in class Record
public void writeOut(java.io.OutputStream out) throws java.io.IOException
public void setTextSize(int size)
size
- the text lengthpublic void reset(int size)
size
- the site of parent textpublic void setParentSize(int size)
TextSpecInfoRun
or chopping the runs to the given lengthsize
- public int getCharactersCovered()
public TextSpecInfoRun[] getTextSpecInfoRuns()
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
Copyright 2020 The Apache Software Foundation or its licensors, as applicable.