public class IlrTranslationParser
extends java.lang.Object
| Constructor and Description |
|---|
IlrTranslationParser()
Creates a translation parser.
|
IlrTranslationParser(org.xml.sax.ErrorHandler errorHandler)
Creates a translation parser and specifies a SAX error handler to be used
when parsing a file.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isValidating()
Returns
true if the parse methods will validate the files
against the B2X XML Schema. |
void |
parse(IlrTranslationConfiguration configuration,
java.io.Reader reader)
Parses a b2x file.
|
void |
parsePath(IlrTranslationConfiguration configuration,
java.io.Reader[] readers)
Parses a path of b2x files.
|
void |
setValidating(boolean validating)
Sets a Boolean value indicating whether validation against the XML Schema
will be used when parsing.
|
public IlrTranslationParser()
public IlrTranslationParser(org.xml.sax.ErrorHandler errorHandler)
errorHandler - A SAX error handler that will be used when parsing a file.public boolean isValidating()
true if the parse methods will validate the files
against the B2X XML Schema.true if validation against the XML Schema will be
used when parsing.public void setValidating(boolean validating)
validating - true to set validating or false
otherwise.public void parsePath(IlrTranslationConfiguration configuration, java.io.Reader[] readers) throws java.io.IOException, org.xml.sax.SAXException
java.io.IOExceptionorg.xml.sax.SAXExceptionconfiguration - A translation configuration that will be filled with the
information given in the readers.readers - An array of readers that will be read in order.public void parse(IlrTranslationConfiguration configuration, java.io.Reader reader) throws java.io.IOException, org.xml.sax.SAXException
java.io.IOExceptionorg.xml.sax.SAXExceptionconfiguration - A translation configuration that will be filled with the
information given in the reader.reader - A reader.© Copyright IBM Corp. 1987, 2017