public final class TXMLObjectFactory
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
TXMLObjectFactory()
Protected Constructor.
|
Modifier and Type | Method and Description |
---|---|
static TXMLObjectFactory |
getInstance()
Gets the singleton instance.
|
TXMLObject |
newXMLObject(java.io.InputStream inputStream)
Creates a TXMLObject instance with an underlying input stream.
|
TXMLObject |
newXMLObject(java.io.InputStream inputStream,
java.util.Locale locale)
Creates a TXMLObject instance with an underlying input stream.
|
TXMLObject |
newXMLObject(java.io.InputStream inputStream,
java.lang.String systemId)
Creates a TXMLObject instance with an underlying input stream.
|
TXMLObject |
newXMLObject(java.io.InputStream inputStream,
java.lang.String systemId,
java.util.Locale locale)
Creates a TXMLObject instance with an underlying input stream.
|
TXMLObject |
newXMLObject(java.lang.Object element)
Factory method.
|
TXMLObject |
newXMLObject(java.lang.Object element,
java.util.Locale locale)
Factory method.
|
TXMLObject |
newXMLObject(java.io.Reader reader)
Creates a TXMLObject instance with an underlying character input stream.
|
TXMLObject |
newXMLObject(java.io.Reader reader,
java.util.Locale locale)
Creates a TXMLObject instance with an underlying character input stream.
|
TXMLObject |
newXMLObject(java.io.Reader reader,
java.lang.String systemId)
Creates a TXMLObject instance with an underlying character input stream.
|
TXMLObject |
newXMLObject(java.io.Reader reader,
java.lang.String systemId,
java.util.Locale locale)
Creates a TXMLObject instance with an underlying character input stream.
|
TXMLObject |
newXMLObject(TXMLObjectModel xmlObjectModel)
Factory method.
|
TXMLObject |
newXMLObject(TXMLObjectModel xmlObjectModel,
java.util.Locale locale)
Factory method.
|
public static TXMLObjectFactory getInstance()
public TXMLObject newXMLObject(TXMLObjectModel xmlObjectModel)
TXMLObject xmlObject = TXMLObject.newInstance( TDOMObjectModel.getInstance() , null , null ); xmlObject.readFrom( inputStream ); org.w3c.dom.Element rootElement = (org.w3c.dom.Element)xmlObject.getElement();
xmlObjectModel
- specifies the concrete object model that should be used.public TXMLObject newXMLObject(TXMLObjectModel xmlObjectModel, java.util.Locale locale)
TXMLObject xmlObject = TXMLObject.newInstance( TDOMObjectModel.getInstance() , null , null ); xmlObject.readFrom( inputStream ); org.w3c.dom.Element rootElement = (org.w3c.dom.Element)xmlObject.getElement();
xmlObjectModel
- specifies the concrete object model that should be used.public TXMLObject newXMLObject(java.lang.Object element)
element
- is the concrete object representing the XML document which is wrapped by the TXMLObject adapter.public TXMLObject newXMLObject(java.lang.Object element, java.util.Locale locale)
element
- is the concrete object representing the XML document which is wrapped by the TXMLObject adapter.public TXMLObject newXMLObject(java.io.InputStream inputStream)
inputStream
- is the byte input stream for XML data.public TXMLObject newXMLObject(java.io.InputStream inputStream, java.util.Locale locale)
inputStream
- is the byte input stream for XML data.public TXMLObject newXMLObject(java.io.InputStream inputStream, java.lang.String systemId)
inputStream
- is the byte input stream for XML data.systemId
- the base URI of the data to resolve relative references.public TXMLObject newXMLObject(java.io.InputStream inputStream, java.lang.String systemId, java.util.Locale locale)
inputStream
- is the byte input stream for XML data.systemId
- the base URI of the data to resolve relative references.public TXMLObject newXMLObject(java.io.Reader reader)
reader
- is the character input stream for XML data.public TXMLObject newXMLObject(java.io.Reader reader, java.util.Locale locale)
reader
- is the character input stream for XML data.public TXMLObject newXMLObject(java.io.Reader reader, java.lang.String systemId)
reader
- is the character input stream for XML data.systemId
- the base URI of the data to resolve relative references.public TXMLObject newXMLObject(java.io.Reader reader, java.lang.String systemId, java.util.Locale locale)
reader
- is the character input stream for XML data.systemId
- the base URI of the data to resolve relative references.Copyright (c) 2017 Software AG. All Rights Reserved.