public abstract class BaseJaxbXmlReader extends Object implements XmlReader
Constructor and Description |
---|
BaseJaxbXmlReader(ReflectiveVisitor visitor)
Returns a new JaxbXmlReader.
|
Modifier and Type | Method and Description |
---|---|
protected abstract JAXBContext |
getContext() |
protected URL |
getSchema() |
Term |
read(File file)
Unmarshalles XML data from the specified file and
returns the root Term.
|
Term |
read(InputSource input)
Unmarshalles XML data from the specified source and
returns the root Term.
|
Term |
read(InputStream stream)
Unmarshalles XML data from the specified file and
returns the root Term.
|
public BaseJaxbXmlReader(ReflectiveVisitor visitor)
visitor
- protected abstract JAXBContext getContext()
protected URL getSchema()
public Term read(InputStream stream) throws UnmarshalException
read
in interface XmlReader
stream
- the stream to be unmarshalled.UnmarshalException
public Term read(InputSource input) throws UnmarshalException
read
in interface XmlReader
input
- the source to be unmarshalled.UnmarshalException
public Term read(File file) throws UnmarshalException
read
in interface XmlReader
file
- the file to be unmarshalled.UnmarshalException
Copyright © 2003–2016 Community Z Tools Project. All rights reserved.