public class StreamingParserFactoryImpl extends StreamingParserFactory
| Constructor and Description |
|---|
StreamingParserFactoryImpl()
The constructor is made public now to allow access from
javax.xml.marshal.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCoalescing()
Returns the coalescing property of this factory.
|
boolean |
isNamespaceAware()
Returns the namespaceAware property of this factory.
|
boolean |
isValidating()
Returns the validating property of this factory.
|
StreamingParser |
newParser(File file)
Creates a new demand-driven parser that reads from the given file.
|
StreamingParser |
newParser(InputStream in)
Creates a new parser instance that reads from the given input stream.
|
void |
setCoalescing(boolean coalescing)
Sets the coalescing property of this factory.
|
void |
setNamespaceAware(boolean namespaceAware)
Sets the namespaceAware property of this factory.
|
void |
setValidating(boolean validating)
Sets the validating property of this factory.
|
newInstancepublic StreamingParserFactoryImpl()
public void setValidating(boolean validating)
setValidating in class StreamingParserFactoryvalidating - Parsers henceforth created by this factory will perform
validation if, and only if, this parameter is trueUnsupportedOperationException - If the parser implementation does not support the requested
valuepublic boolean isValidating()
isValidating in class StreamingParserFactorypublic void setCoalescing(boolean coalescing)
StreamingParser.CHARS state will never occur
more than once in sequence.setCoalescing in class StreamingParserFactorycoalescing - Parsers henceforth created by this factory will coalesce
character data if, and only if, this parameter is trueUnsupportedOperationException - If the parser implementation does not support the requested
valuepublic boolean isCoalescing()
isCoalescing in class StreamingParserFactorypublic void setNamespaceAware(boolean namespaceAware)
setNamespaceAware in class StreamingParserFactorynamespaceAware - Parsers henceforth created by this factory will support
namespace if, and only if, this parameter is trueUnsupportedOperationException - If the parser implementation does not support the requested
valuepublic boolean isNamespaceAware()
isNamespaceAware in class StreamingParserFactorypublic StreamingParser newParser(InputStream in)
parse method of the resulting parser must be invoked to parse the
initial component of the input document.newParser in class StreamingParserFactoryin - The input stream from which the XML document will be readpublic StreamingParser newParser(File file) throws IOException
parse method must be invoked to parse the initial component of the
given document.newParser in class StreamingParserFactoryfile - The file from which the XML document will be readIOException - If an I/O error occursCopyright © 2017–2019 Eclipse Foundation. All rights reserved.