public class PlasmaXMLHelper extends Object implements commonj.sdo.helper.XMLHelper
| Modifier and Type | Field and Description |
|---|---|
static PlasmaXMLHelper |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
commonj.sdo.helper.XMLDocument |
createDocument(commonj.sdo.DataObject dataObject,
String rootElementURI,
String rootElementName)
Creates an XMLDocument with the specified XML rootElement for the
DataObject.
|
commonj.sdo.helper.XMLDocument |
load(InputStream inputStream)
Creates and returns an XMLDocument from the inputStream.
|
commonj.sdo.helper.XMLDocument |
load(InputStream inputStream,
String locationURI,
Object options)
Creates and returns an XMLDocument from the inputStream.
|
commonj.sdo.helper.XMLDocument |
load(Reader inputReader,
String locationURI,
Object options)
Creates and returns an XMLDocument from the inputReader.
|
commonj.sdo.helper.XMLDocument |
load(Source inputSource,
String locationURI,
Object options)
Creates and returns an XMLDocument from the inputSource.
|
commonj.sdo.helper.XMLDocument |
load(String inputString)
Creates and returns an XMLDocument from the input String.
|
String |
save(commonj.sdo.DataObject dataObject,
String rootElementURI,
String rootElementName)
Returns the DataObject saved as an XML document with the specified root
element.
|
void |
save(commonj.sdo.DataObject dataObject,
String rootElementURI,
String rootElementName,
OutputStream outputStream)
Saves the DataObject as an XML document with the specified root element.
|
void |
save(commonj.sdo.helper.XMLDocument xmlDocument,
OutputStream outputStream,
Object options)
Serializes an XMLDocument as an XML document into the outputStream.
|
void |
save(commonj.sdo.helper.XMLDocument xmlDocument,
Result outputResult,
Object options)
Serializes an XMLDocument as an XML document into the outputResult in a
serialization technology independent format (as specified in
javax.xml.transform).
|
void |
save(commonj.sdo.helper.XMLDocument xmlDocument,
Writer outputWriter,
Object options)
Serializes an XMLDocument as an XML document into the outputWriter.
|
public static volatile PlasmaXMLHelper INSTANCE
public commonj.sdo.helper.XMLDocument createDocument(commonj.sdo.DataObject dataObject,
String rootElementURI,
String rootElementName)
createDocument in interface commonj.sdo.helper.XMLHelperdataObject - specifies DataObject to be savedrootElementURI - the Target Namespace URI of the root XML elementrootElementName - the Name of the root XML elementpublic commonj.sdo.helper.XMLDocument load(String inputString)
load in interface commonj.sdo.helper.XMLHelperinputString - specifies the String to read fromRuntimeException - for errors in XML parsing or implementation-specific validation.public commonj.sdo.helper.XMLDocument load(InputStream inputStream) throws IOException
load in interface commonj.sdo.helper.XMLHelperinputStream - specifies the InputStream to read fromIOException - for stream exceptions.RuntimeException - for errors in XML parsing or implementation-specific validation.public commonj.sdo.helper.XMLDocument load(InputStream inputStream, String locationURI, Object options) throws IOException
load in interface commonj.sdo.helper.XMLHelperinputStream - specifies the InputStream to read fromlocationURI - specifies the URI of the document for relative schema locationsoptions - implementation-specific options.IOException - for stream exceptions.RuntimeException - for errors in XML parsing or implementation-specific validation.public commonj.sdo.helper.XMLDocument load(Reader inputReader, String locationURI, Object options) throws IOException
load in interface commonj.sdo.helper.XMLHelperinputReader - specifies the Reader to read fromlocationURI - specifies the URI of the document for relative schema locationsoptions - implementation-specific options.IOException - for stream exceptions.RuntimeException - for errors in XML parsing or implementation-specific validation.public commonj.sdo.helper.XMLDocument load(Source inputSource, String locationURI, Object options) throws IOException
load in interface commonj.sdo.helper.XMLHelperinputSource - specifies the Source to read fromlocationURI - specifies the URI of the document for relative schema locationsoptions - implementation-specific options.IOException - for stream exceptions.RuntimeException - for errors in XML parsing or implementation-specific validation.public String save(commonj.sdo.DataObject dataObject, String rootElementURI, String rootElementName)
save in interface commonj.sdo.helper.XMLHelperdataObject - specifies DataObject to be savedrootElementURI - the Target Namespace URI of the root XML elementrootElementName - the Name of the root XML elementIllegalArgumentException - if the dataObject tree is not closed or has no container.public void save(commonj.sdo.DataObject dataObject,
String rootElementURI,
String rootElementName,
OutputStream outputStream)
throws IOException
save in interface commonj.sdo.helper.XMLHelperdataObject - specifies DataObject to be savedrootElementURI - the Target Namespace URI of the root XML elementrootElementName - the Name of the root XML elementoutputStream - specifies the OutputStream to write to.IOException - for stream exceptions.IllegalArgumentException - if the dataObject tree is not closed or has no container.public void save(commonj.sdo.helper.XMLDocument xmlDocument,
OutputStream outputStream,
Object options)
throws IOException
save in interface commonj.sdo.helper.XMLHelperxmlDocument - specifies XMLDocument to be savedoutputStream - specifies the OutputStream to write to.options - implementation-specific options.IOException - for stream exceptions.IllegalArgumentException - if the dataObject tree is not closed or has no container.public void save(commonj.sdo.helper.XMLDocument xmlDocument,
Writer outputWriter,
Object options)
throws IOException
save in interface commonj.sdo.helper.XMLHelperxmlDocument - specifies XMLDocument to be savedoutputWriter - specifies the Writer to write to.options - implementation-specific options.IOException - for stream exceptions.IllegalArgumentException - if the dataObject tree is not closed or has no container.public void save(commonj.sdo.helper.XMLDocument xmlDocument,
Result outputResult,
Object options)
throws IOException
save in interface commonj.sdo.helper.XMLHelperxmlDocument - specifies XMLDocument to be savedoutputResult - specifies Result to be savedoptions - implementation-specific options.IOException - for stream exceptions.IllegalArgumentException - if the dataObject tree is not closed or has no container.Copyright © 2021. All rights reserved.