jlibs.xml.sax
Class ObjectInputSource<E>
java.lang.Object
org.xml.sax.InputSource
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
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
input
protected final E input
ObjectInputSource
public ObjectInputSource(E input)
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.