Package org.omegat.util.xml
Class XMLStreamReader
java.lang.Object
org.omegat.util.xml.XMLStreamReader
- All Implemented Interfaces:
Closeable,AutoCloseable
@Deprecated(forRemoval=true,
since="5.8")
public class XMLStreamReader
extends Object
implements Closeable
Deprecated, for removal: This API element is subject to removal in a future version.
A reader for XML stream.
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionfinal XMLBlockadvanceToTag(String tagname) Deprecated, for removal: This API element is subject to removal in a future version.final voidbreakOnWhitespace(boolean brk) Deprecated, for removal: This API element is subject to removal in a future version.voidclose()Deprecated, for removal: This API element is subject to removal in a future version.Closes the TMX filecloseBlock(XMLBlock block) Deprecated, for removal: This API element is subject to removal in a future version.closeBlock(XMLBlock block, boolean includeTerminationBlock) Deprecated, for removal: This API element is subject to removal in a future version.final voidcompressWhitespace(boolean tof) Deprecated, for removal: This API element is subject to removal in a future version.final XMLBlockDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Returns next object in stream - either a tag or a string.final voidDeprecated, for removal: This API element is subject to removal in a future version.makeValidXML(int cp) Deprecated, for removal: This API element is subject to removal in a future version.Converts a single code point into valid XML.makeValidXML(String plaintext) Deprecated, for removal: This API element is subject to removal in a future version.Converts a stream of plaintext into valid XML.final voidsetEntityFilter(DefaultEntityFilter filter) Deprecated, for removal: This API element is subject to removal in a future version.final voidDeprecated, for removal: This API element is subject to removal in a future version.voidsetStream(InputStream stream) Deprecated, for removal: This API element is subject to removal in a future version.Provide an interface where stream can be opened elsewhere.voidsetStream(InputStream stream, String encoding) Deprecated, for removal: This API element is subject to removal in a future version.Provide an interface where stream can be opened elsewhere.final voidDeprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
XMLStreamReader
public XMLStreamReader()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
setStream
public final void setStream(File name) throws FileNotFoundException, UnsupportedEncodingException, IOException, TranslationException Deprecated, for removal: This API element is subject to removal in a future version. -
setStream
public final void setStream(String name, String encoding) throws FileNotFoundException, UnsupportedEncodingException, IOException, TranslationException Deprecated, for removal: This API element is subject to removal in a future version. -
setStream
Deprecated, for removal: This API element is subject to removal in a future version.Provide an interface where stream can be opened elsewhere.- Throws:
IOExceptionTranslationException
-
setStream
Deprecated, for removal: This API element is subject to removal in a future version.Provide an interface where stream can be opened elsewhere.- Throws:
IOExceptionTranslationException
-
getNextBlock
Deprecated, for removal: This API element is subject to removal in a future version.Returns next object in stream - either a tag or a string.- Throws:
TranslationException
-
killEmptyBlocks
public final void killEmptyBlocks()Deprecated, for removal: This API element is subject to removal in a future version. -
breakOnWhitespace
public final void breakOnWhitespace(boolean brk) Deprecated, for removal: This API element is subject to removal in a future version. -
compressWhitespace
public final void compressWhitespace(boolean tof) Deprecated, for removal: This API element is subject to removal in a future version. -
setEntityFilter
Deprecated, for removal: This API element is subject to removal in a future version. -
makeValidXML
Deprecated, for removal: This API element is subject to removal in a future version.Converts a single code point into valid XML. Output stream must convert stream to UTF-8 when saving to disk. -
makeValidXML
Deprecated, for removal: This API element is subject to removal in a future version.Converts a stream of plaintext into valid XML. Output stream must convert stream to UTF-8 when saving to disk. -
closeBlock
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
TranslationException
-
closeBlock
public List<XMLBlock> closeBlock(XMLBlock block, boolean includeTerminationBlock) throws TranslationException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
TranslationException
-
advanceToTag
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
TranslationException
-
getHeadBlock
Deprecated, for removal: This API element is subject to removal in a future version. -
close
Deprecated, for removal: This API element is subject to removal in a future version.Closes the TMX file- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-