public class TextSpecInfoRun extends java.lang.Object implements GenericRecord
Modifier and Type | Class and Description |
---|---|
static class |
TextSpecInfoRun.SpellInfoEnum
A enum that specifies the spelling status of a run of text.
|
Constructor and Description |
---|
TextSpecInfoRun(int len)
Inits a TextSpecInfoRun with default values
|
TextSpecInfoRun(LittleEndianByteArrayInputStream source) |
Modifier and Type | Method and Description |
---|---|
short |
getAltLangId()
Alternate Windows LANGID of this text;
must be a valid non-East Asian LANGID if the text has an East Asian language,
otherwise may be an East Asian LANGID or language neutral (zero).
|
java.lang.Boolean |
getBidi() |
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
java.lang.Boolean |
getGrammarError() |
void |
getGrammarError(java.lang.Boolean grammarError) |
short |
getLangId()
Windows LANGID for this text.
|
int |
getLength() |
int |
getPP10RunId() |
byte[] |
getSmartTagsBytes() |
TextSpecInfoRun.SpellInfoEnum |
getSpellInfo() |
void |
setAltLangId(short altLangId) |
void |
setBidi(java.lang.Boolean bidi) |
void |
setLangId(short langId) |
void |
setLength(int length) |
void |
setPP10RunId(int pp10RunId) |
void |
setSmartTagsBytes(byte[] smartTagsBytes) |
void |
setSpellInfo(TextSpecInfoRun.SpellInfoEnum spellInfo) |
void |
writeOut(java.io.OutputStream out)
Write the contents of the record back, so it can be written
to disk
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getGenericChildren, getGenericRecordType
public TextSpecInfoRun(int len)
len
- the length of the one and only runpublic TextSpecInfoRun(LittleEndianByteArrayInputStream source)
public void writeOut(java.io.OutputStream out) throws java.io.IOException
out
- the output stream to write to.java.io.IOException
- if an error occurs.public TextSpecInfoRun.SpellInfoEnum getSpellInfo()
public void setSpellInfo(TextSpecInfoRun.SpellInfoEnum spellInfo)
spellInfo
- Spelling status of this text. null if not defined.public short getLangId()
public void setLangId(short langId)
langId
- Windows LANGID for this text, -1 to unsetpublic short getAltLangId()
public void setAltLangId(short altLangId)
public int getLength()
public void setLength(int length)
length
- Length of special info run.public java.lang.Boolean getBidi()
public void setBidi(java.lang.Boolean bidi)
bidi
- the bidirectional characters flag. false = not bidi, true = is bidi, null = not setpublic byte[] getSmartTagsBytes()
public void setSmartTagsBytes(byte[] smartTagsBytes)
smartTagsBytes
- the unparsed smart tags, null to unsetpublic int getPP10RunId()
public void setPP10RunId(int pp10RunId)
pp10RunId
- an identifier for a character run that contains StyleTextProp11 data, -1 to unsetpublic java.lang.Boolean getGrammarError()
public void getGrammarError(java.lang.Boolean grammarError)
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
getGenericProperties
in interface GenericRecord
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.