|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.csutils.core.utils.JaxbReader<CLSS>
public class JaxbReader<CLSS>
Helper class, which provides useful tools for working with JAXB.
| Constructor Summary | |
|---|---|
JaxbReader(java.lang.Class<CLSS> pClass)
|
|
| Method Summary | |
|---|---|
CLSS |
read(java.io.File pFile)
Reads and deserializes a JAXB bean from the XML stream provided by the given File. |
CLSS |
read(org.xml.sax.InputSource pSource)
Reads and deserializes a JAXB bean from the XML stream provided by the given InputSource. |
CLSS |
read(java.io.InputStream pStream)
Reads and deserializes a JAXB bean by reading the given InputStream. |
CLSS |
read(org.w3c.dom.Node pNode)
Reads and deserializes a JAXB bean from the XML stream provided by the given Node. |
CLSS |
read(java.lang.Object pObject)
|
CLSS |
read(java.io.Reader pReader)
Reads and deserializes a JAXB bean from the XML stream provided by the given Reader. |
CLSS |
read(javax.xml.transform.Source pSource)
Reads and deserializes a JAXB bean from the XML stream provided by the given Source. |
CLSS |
read(java.net.URL pURL)
Reads and deserializes a JAXB bean from the XML stream provided by the given URL. |
CLSS |
read(javax.xml.stream.XMLEventReader pReader)
Reads and deserializes a JAXB bean from the XML stream provided by the given XMLEventReader. |
CLSS |
read(javax.xml.stream.XMLStreamReader pReader)
Reads and deserializes a JAXB bean from the XML stream provided by the given XMLStreamReader. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JaxbReader(java.lang.Class<CLSS> pClass)
| Method Detail |
|---|
public CLSS read(java.io.InputStream pStream)
throws javax.xml.bind.JAXBException
InputStream.
pStream - The stream, from which to read the JAXB bean.
javax.xml.bind.JAXBException - The operation failed.
public CLSS read(java.io.File pFile)
throws javax.xml.bind.JAXBException
File.
pFile - The file, from which to read the JAXB bean.
javax.xml.bind.JAXBException - The operation failed.
public CLSS read(org.xml.sax.InputSource pSource)
throws javax.xml.bind.JAXBException
InputSource.
pSource - The SAX source, from which to read the JAXB bean.
javax.xml.bind.JAXBException - The operation failed.
public CLSS read(java.io.Reader pReader)
throws javax.xml.bind.JAXBException
Reader.
pReader - The reader, from which to read the JAXB bean.
javax.xml.bind.JAXBException - The operation failed.
public CLSS read(org.w3c.dom.Node pNode)
throws javax.xml.bind.JAXBException
Node.
pNode - The node, from which to read the XML stream.
javax.xml.bind.JAXBException - The operation failed.
public CLSS read(javax.xml.transform.Source pSource)
throws javax.xml.bind.JAXBException
Source.
pSource - The transformer source providing the XML stream.
javax.xml.bind.JAXBException - The operation failed.
public CLSS read(java.net.URL pURL)
throws java.io.IOException,
javax.xml.bind.JAXBException
URL.
pURL - The URL providing the XML streams.
javax.xml.bind.JAXBException - The operation failed.
java.io.IOException
public CLSS read(javax.xml.stream.XMLEventReader pReader)
throws javax.xml.bind.JAXBException
XMLEventReader.
pReader - The StAX event reader poviding the XML stream.
javax.xml.bind.JAXBException - The operation failed.
public CLSS read(javax.xml.stream.XMLStreamReader pReader)
throws javax.xml.bind.JAXBException
XMLStreamReader.
pReader - The StAX stream reader providing the XML stream.
javax.xml.bind.JAXBException - The operation failed.
public CLSS read(java.lang.Object pObject)
throws javax.xml.bind.JAXBException,
java.io.IOException
javax.xml.bind.JAXBException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||