com.opensymphony.util
Class XMLReaderAdapter
java.lang.Object
com.opensymphony.util.XMLReaderAdapter
- All Implemented Interfaces:
- Locator, XMLReader
public class XMLReaderAdapter - extends Object
- implements Locator, XMLReader
XMLReaderAdapter converts a java bean to its xml representation. It does
this by simulating a SAX XMLReader which an xslt processor can use as
a SAXSource.
- Version:
- $Revision: 5 $
- Author:
- Victor Salaman
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLReaderAdapter
public XMLReaderAdapter(Object object)
XMLReaderAdapter
public XMLReaderAdapter(Object object,
String root)
getColumnNumber
public int getColumnNumber()
- Specified by:
getColumnNumber in interface Locator
setContentHandler
public void setContentHandler(ContentHandler handler)
- Specified by:
setContentHandler in interface XMLReader
getContentHandler
public ContentHandler getContentHandler()
- Specified by:
getContentHandler in interface XMLReader
setDTDHandler
public void setDTDHandler(DTDHandler handler)
- Specified by:
setDTDHandler in interface XMLReader
getDTDHandler
public DTDHandler getDTDHandler()
- Specified by:
getDTDHandler in interface XMLReader
setEntityResolver
public void setEntityResolver(EntityResolver resolver)
- Specified by:
setEntityResolver in interface XMLReader
getEntityResolver
public EntityResolver getEntityResolver()
- Specified by:
getEntityResolver in interface XMLReader
setErrorHandler
public void setErrorHandler(ErrorHandler handler)
- Specified by:
setErrorHandler in interface XMLReader
getErrorHandler
public ErrorHandler getErrorHandler()
- Specified by:
getErrorHandler in interface XMLReader
setFeature
public void setFeature(String featureId,
boolean on)
throws SAXNotRecognizedException,
SAXNotSupportedException
- Specified by:
setFeature in interface XMLReader
- Throws:
SAXNotRecognizedException
SAXNotSupportedException
getFeature
public boolean getFeature(String featureId)
throws SAXNotRecognizedException
- Specified by:
getFeature in interface XMLReader
- Throws:
SAXNotRecognizedException
getLineNumber
public int getLineNumber()
- Specified by:
getLineNumber in interface Locator
setObject
public void setObject(Object object)
setProperty
public void setProperty(String propertyId,
Object property)
throws SAXNotRecognizedException,
SAXNotSupportedException
- Specified by:
setProperty in interface XMLReader
- Throws:
SAXNotRecognizedException
SAXNotSupportedException
getProperty
public Object getProperty(String name)
throws SAXNotRecognizedException
- Specified by:
getProperty in interface XMLReader
- Throws:
SAXNotRecognizedException
getPublicId
public String getPublicId()
- Specified by:
getPublicId in interface Locator
setRoot
public void setRoot(String root)
getSystemId
public String getSystemId()
- Specified by:
getSystemId in interface Locator
parse
public void parse(InputSource source)
throws IOException,
SAXException
- Specified by:
parse in interface XMLReader
- Throws:
IOException
SAXException
parse
public void parse(String s)
throws IOException,
SAXException
- Specified by:
parse in interface XMLReader
- Throws:
IOException
SAXException
parse
public void parse()
throws IOException,
SAXException
- Throws:
IOException
SAXException
|