org.bibop.xml.utils
Class SAXUtils

java.lang.Object
  |
  +--org.bibop.xml.utils.SAXUtils

public class SAXUtils
extends java.lang.Object

Version:
1.0
Author:
Alberto Garoffolo

Field Summary
static int SERIALIZE_TEXT
           
static int SERIALIZE_XML
           
static java.lang.Class TEXT_SERIALIZER_CLASS
           
static java.lang.Class XML_SERIALIZER_CLASS
           
static java.util.HashMap xml2java_encodings
           
 
Constructor Summary
SAXUtils()
           
 
Method Summary
static java.lang.String getEncoding(java.lang.String fileName)
           
static java.lang.String serialize(java.io.InputStream is, boolean omitxmldeclaration, java.lang.String encoding, boolean needstartenddocument, java.lang.Class serializerclass)
           
static java.lang.String serialize(java.io.InputStream is, int serializertype, java.lang.String defaultencoding)
           
static java.lang.String serialize(XMLProducer producer, boolean omitxmldeclaration, java.lang.String encoding, boolean needstartenddocument, java.lang.Class serializerclass)
           
static java.lang.String serialize(XMLProducer producer, int serializertype, java.lang.String defaultencoding)
           
static java.lang.String XML2JAVAEncoding(java.lang.String xmlencoding)
           
static java.lang.String XML2JAVAEncoding(java.lang.String xmlencoding, java.lang.String defaultxmlencoding)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERIALIZE_XML

public static final int SERIALIZE_XML
See Also:
Constant Field Values

SERIALIZE_TEXT

public static final int SERIALIZE_TEXT
See Also:
Constant Field Values

XML_SERIALIZER_CLASS

public static java.lang.Class XML_SERIALIZER_CLASS

TEXT_SERIALIZER_CLASS

public static java.lang.Class TEXT_SERIALIZER_CLASS

xml2java_encodings

public static java.util.HashMap xml2java_encodings
Constructor Detail

SAXUtils

public SAXUtils()
Method Detail

XML2JAVAEncoding

public static java.lang.String XML2JAVAEncoding(java.lang.String xmlencoding,
                                                java.lang.String defaultxmlencoding)

XML2JAVAEncoding

public static java.lang.String XML2JAVAEncoding(java.lang.String xmlencoding)

serialize

public static java.lang.String serialize(XMLProducer producer,
                                         int serializertype,
                                         java.lang.String defaultencoding)
                                  throws org.xml.sax.SAXException
org.xml.sax.SAXException

serialize

public static java.lang.String serialize(java.io.InputStream is,
                                         int serializertype,
                                         java.lang.String defaultencoding)
                                  throws org.xml.sax.SAXException
org.xml.sax.SAXException

serialize

public static java.lang.String serialize(XMLProducer producer,
                                         boolean omitxmldeclaration,
                                         java.lang.String encoding,
                                         boolean needstartenddocument,
                                         java.lang.Class serializerclass)
                                  throws org.xml.sax.SAXException
org.xml.sax.SAXException

serialize

public static java.lang.String serialize(java.io.InputStream is,
                                         boolean omitxmldeclaration,
                                         java.lang.String encoding,
                                         boolean needstartenddocument,
                                         java.lang.Class serializerclass)
                                  throws org.xml.sax.SAXException
org.xml.sax.SAXException

getEncoding

public static java.lang.String getEncoding(java.lang.String fileName)


Copyright 2003 Bibop Research International. All Rights Reserved.