Skip navigation links


com.essbase.eas.framework.defs.xml
Class XmlObject

java.lang.Object
  extended by com.essbase.eas.framework.defs.xml.XmlObject


public class XmlObject
extends java.lang.Object
Since:
6.5.4
Version:
6.5.4
Author:
Madhavi Bolisetty

Nested Class Summary
static class XmlObject.XMLByteArrayOutputStream
           

 

Constructor Summary
XmlObject()
           

 

Method Summary
 org.w3c.dom.Document buildDom(java.io.File inputFile)
          Builds a DOM document from XML document given as a file using JAXP interface The parameter 'inputFile' is the File that contains the XML document Returns the Document built from the XML document.
 org.w3c.dom.Document buildDom(java.lang.String input)
          Builds a DOM document from XML document using JAXP interface The parameter 'input' is the XML document Returns the Document built from the XML document.
 org.w3c.dom.Document createXmlDocument()
          Creates a new XML document using JAXP interface Returns the Document created.
static void formatXML(java.lang.String xml, java.io.File outfile)
           
static void formatXML(java.lang.String xml, java.lang.Object stream)
           
static void formatXML(java.lang.String xml, java.lang.String outfile)
           
static java.io.ByteArrayOutputStream getStreamFromDocument(org.w3c.dom.Document document)
          Generates a stream from the XML Document using JAXP interface The parameter 'document' is the XML document Returns the output stream.
 boolean getValidating()
           
static void releaseDocument(org.w3c.dom.Document document)
           
 void setSchemaSources(java.io.InputStream[] inpStreams)
           
 void setValidating(boolean valid)
           
static boolean streamToFileFromDocument(org.w3c.dom.Document document, java.io.File file)
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

XmlObject

public XmlObject()

Method Detail

setValidating

public void setValidating(boolean valid)

getValidating

public boolean getValidating()

setSchemaSources

public void setSchemaSources(java.io.InputStream[] inpStreams)

createXmlDocument

public org.w3c.dom.Document createXmlDocument()
                                       throws java.lang.Exception
Creates a new XML document using JAXP interface Returns the Document created.
Throws:
java.lang.Exception

buildDom

public org.w3c.dom.Document buildDom(java.lang.String input)
                              throws java.lang.Exception
Builds a DOM document from XML document using JAXP interface The parameter 'input' is the XML document Returns the Document built from the XML document.
Throws:
java.lang.Exception

buildDom

public org.w3c.dom.Document buildDom(java.io.File inputFile)
                              throws java.lang.Exception
Builds a DOM document from XML document given as a file using JAXP interface The parameter 'inputFile' is the File that contains the XML document Returns the Document built from the XML document.
Throws:
java.lang.Exception

getStreamFromDocument

public static java.io.ByteArrayOutputStream getStreamFromDocument(org.w3c.dom.Document document)
Generates a stream from the XML Document using JAXP interface The parameter 'document' is the XML document Returns the output stream.

streamToFileFromDocument

public static boolean streamToFileFromDocument(org.w3c.dom.Document document,
                                               java.io.File file)
                                        throws java.io.IOException
Throws:
java.io.IOException

releaseDocument

public static void releaseDocument(org.w3c.dom.Document document)

formatXML

public static void formatXML(java.lang.String xml,
                             java.lang.String outfile)

formatXML

public static void formatXML(java.lang.String xml,
                             java.io.File outfile)

formatXML

public static void formatXML(java.lang.String xml,
                             java.lang.Object stream)

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.