jlibs.xml.sax
Class ObjectInputSource<E>

java.lang.Object
  extended by org.xml.sax.InputSource
      extended by jlibs.xml.sax.ObjectInputSource<E>
Direct Known Subclasses:
SAXInputSource

public abstract class ObjectInputSource<E>
extends InputSource

An InputSource implementation which uses XMLDocument to convert java object to XML

Author:
Santhosh Kumar T

Field Summary
protected  E input
           
 
Constructor Summary
ObjectInputSource(E input)
           
 
Method Summary
 E getObject()
           
static void main(String[] args)
           
protected abstract  void write(E input, XMLDocument xml)
           
 void writeTo(OutputStream out, boolean omitXMLDeclaration, int indentAmount, String encoding)
           
 void writeTo(String systemID, boolean omitXMLDeclaration, int indentAmount, String encoding)
           
 void writeTo(Writer writer, boolean omitXMLDeclaration, int indentAmount)
           
 
Methods inherited from class org.xml.sax.InputSource
getByteStream, getCharacterStream, getEncoding, getPublicId, getSystemId, setByteStream, setCharacterStream, setEncoding, setPublicId, setSystemId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

input

protected final E input
Constructor Detail

ObjectInputSource

public ObjectInputSource(E input)
Method Detail

getObject

public E getObject()

write

protected abstract void write(E input,
                              XMLDocument xml)
                       throws SAXException
Throws:
SAXException

writeTo

public void writeTo(Writer writer,
                    boolean omitXMLDeclaration,
                    int indentAmount)
             throws TransformerException
Throws:
TransformerException

writeTo

public void writeTo(OutputStream out,
                    boolean omitXMLDeclaration,
                    int indentAmount,
                    String encoding)
             throws TransformerException
Throws:
TransformerException

writeTo

public void writeTo(String systemID,
                    boolean omitXMLDeclaration,
                    int indentAmount,
                    String encoding)
             throws TransformerException
Throws:
TransformerException

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Copyright © 2015. All rights reserved.