public final class TextSpecInfoAtom extends RecordAtom
Modifier and Type | Class and Description |
---|---|
static class |
TextSpecInfoAtom.TextSpecInfoRun |
Modifier | Constructor and Description |
---|---|
protected |
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
|
long |
getRecordType()
Gets the record type.
|
TextSpecInfoAtom.TextSpecInfoRun[] |
getTextSpecInfoRuns() |
void |
reset(int size)
Reset the content to one info run with the default values
|
void |
setTextSize(int size)
Update the text length
|
void |
writeOut(OutputStream out)
Write the contents of the record back, so it can be written
to disk
|
getChildRecords, isAnAtom
buildRecordAtOffset, createRecordForType, findChildRecords, writeLittleEndian, writeLittleEndian
protected 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(OutputStream out) throws IOException
writeOut
in class Record
out
- the output stream to write to.IOException
- if an error occurs.public void setTextSize(int size)
size
- the text lengthpublic void reset(int size)
size
- the site of parent textpublic int getCharactersCovered()
public TextSpecInfoAtom.TextSpecInfoRun[] getTextSpecInfoRuns()
Copyright © 2020. All rights reserved.