moazs.util
Class MoaXMLUtils

java.lang.Object
  extended bymoazs.util.MoaXMLUtils

public class MoaXMLUtils
extends Object


Constructor Summary
MoaXMLUtils()
           
 
Method Summary
static Document createNewDocument()
           
static void initialize()
           
static void serialize(Document doc, OutputStream outputStream, boolean addXMLHeader, boolean ident)
           
static void serialize(Element element, OutputStream outputStream, boolean addXMLHeader, boolean ident)
           
static byte[] serializeToByteArray(Document doc, boolean addXMLHeader)
           
static byte[] serializeToByteArray(Element doc, boolean addXMLHeader)
           
static String serializeToString(Element doc, boolean addXMLHeader)
           
static boolean validateMZS(Element element)
           
static boolean validateZUSE(Element element)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MoaXMLUtils

public MoaXMLUtils()
Method Detail

initialize

public static void initialize()

validateMZS

public static boolean validateMZS(Element element)
                           throws MoaException
Throws:
MoaException

validateZUSE

public static boolean validateZUSE(Element element)
                            throws MoaException
Throws:
MoaException

serialize

public static void serialize(Document doc,
                             OutputStream outputStream,
                             boolean addXMLHeader,
                             boolean ident)
                      throws IOException
Throws:
IOException

serializeToString

public static String serializeToString(Element doc,
                                       boolean addXMLHeader)
                                throws IOException
Throws:
IOException

serializeToByteArray

public static byte[] serializeToByteArray(Element doc,
                                          boolean addXMLHeader)
                                   throws IOException
Throws:
IOException

serializeToByteArray

public static byte[] serializeToByteArray(Document doc,
                                          boolean addXMLHeader)
                                   throws IOException
Throws:
IOException

serialize

public static void serialize(Element element,
                             OutputStream outputStream,
                             boolean addXMLHeader,
                             boolean ident)
                      throws IOException
Throws:
IOException

createNewDocument

public static Document createNewDocument()
                                  throws ParserConfigurationException
Throws:
ParserConfigurationException


Copyright 2008 EGIZ. All Rights Reserved.