Main Page | Packages | Class Hierarchy | Class List | Directories | Class Members | Related Pages

org.colimas.services.xml.XMLWriter Class Reference

List of all members.

Public Member Functions

 XMLWriter (OutputStream out)
 XMLWriter (Writer out)
java.lang.String getEncoding ()
boolean isIndenting ()
boolean isOmitDocumentType ()
boolean isOmitXMLDeclaration ()
void setEncoding (java.lang.String newEncoding)
void setIndenting (boolean newIndenting)
void setOmitDocumentType (boolean newOmitDocumentType)
void setOmitXMLDeclaration (boolean newOmitXMLDeclaration)
void write (Document dom) throws IOException

Static Public Member Functions

static String domToString (Document dom, boolean omitXMLDeclaration) throws IOException
static String dom2string (Document dom) throws Exception
static void dom2writer (Document document, boolean omitXmlDeclaration, String encoding, boolean indenting, Writer out) throws Exception

Detailed Description

Author:
tyrone
TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates


Constructor & Destructor Documentation

org.colimas.services.xml.XMLWriter.XMLWriter OutputStream  out  ) 
 

Builds the XMLWriter from an java.io.OutputStream

org.colimas.services.xml.XMLWriter.XMLWriter Writer  out  ) 
 

Builds the XMLWriter from a java.io.Writer


Member Function Documentation

static String org.colimas.services.xml.XMLWriter.dom2string Document  dom  )  throws Exception [static]
 

Returns:
java.lang.String
Parameters:
dom org.w3c.dom.Document

static void org.colimas.services.xml.XMLWriter.dom2writer Document  document,
boolean  omitXmlDeclaration,
String  encoding,
boolean  indenting,
Writer  out
throws Exception [static]
 

Writes a DOM object via usage of a writer and XML transformation

Parameters:
document The DOM object
omitXmlDeclaration true if the XML transformation must done omitting declaration.
encoding The encoding to use during transformation (null to relay on default implementation's encoding)
indenting true if the output has to be indented.
out The writer to use.
Exceptions:
Exception Thrown whenever a problem during XML transformation.

static String org.colimas.services.xml.XMLWriter.domToString Document  dom,
boolean  omitXMLDeclaration
throws IOException [static]
 

Translates the DOM into an XML string

Returns:
An XML string
Parameters:
dom The DOM to translate
omitXMLDeclaration True if the XML header must be removed

java.lang.String org.colimas.services.xml.XMLWriter.getEncoding  ) 
 

Insert the method's description here.

Returns:
java.lang.String

boolean org.colimas.services.xml.XMLWriter.isIndenting  ) 
 

Insert the method's description here.

Returns:
boolean

boolean org.colimas.services.xml.XMLWriter.isOmitDocumentType  ) 
 

Insert the method's description here.

Returns:
boolean

boolean org.colimas.services.xml.XMLWriter.isOmitXMLDeclaration  ) 
 

Insert the method's description here.

Returns:
boolean

void org.colimas.services.xml.XMLWriter.setEncoding java.lang.String  newEncoding  ) 
 

Insert the method's description here.

Parameters:
newEncoding java.lang.String

void org.colimas.services.xml.XMLWriter.setIndenting boolean  newIndenting  ) 
 

Insert the method's description here.

Parameters:
newIndenting boolean

void org.colimas.services.xml.XMLWriter.setOmitDocumentType boolean  newOmitDocumentType  ) 
 

Insert the method's description here.

Parameters:
newOmitDocumentType boolean

void org.colimas.services.xml.XMLWriter.setOmitXMLDeclaration boolean  newOmitXMLDeclaration  ) 
 

Insert the method's description here.

Parameters:
newOmitXMLDeclaration boolean

void org.colimas.services.xml.XMLWriter.write Document  dom  )  throws IOException
 

Writes a DOM

Parameters:
dom The DOM


The documentation for this class was generated from the following file:
Generated on Sat Jan 14 02:04:38 2006 for Colimas by  doxygen 1.4.4