public class StreamUnmarshaller extends Unmarshaller
flavor, result| Constructor and Description |
|---|
StreamUnmarshaller(XMLOptions options,
String locationURI) |
| Modifier and Type | Method and Description |
|---|---|
static String |
getEventTypeString(int eventType)
Returns the String representation of the given integer constant.
|
commonj.sdo.helper.XMLDocument |
getResult() |
void |
unmarshal(InputStream stream)
Reads the given input stream in its entirety, and closes the stream when
complete.
|
void |
unmarshal(Reader reader)
Reads the given reader as a stream in its entirety, and closes the stream
when complete.
|
void |
unmarshal(Source source)
Reads the given source as a stream in its entirety, and closes the stream
when complete.
|
getOptions, setOptionspublic StreamUnmarshaller(XMLOptions options, String locationURI)
public commonj.sdo.helper.XMLDocument getResult()
public void unmarshal(InputStream stream) throws XMLStreamException, UnmarshallerException
getResult method.stream - the XML stream to readXMLStreamException - if the given document is found to be malformedUnmarshallerException - if undefined properties, or classes are found in the XML stream.public void unmarshal(Source source) throws XMLStreamException, UnmarshallerException
getResult method.source - the XML source to readXMLStreamException - if the given document is found to be malformedUnmarshallerException - if undefined properties, or classes are found in the XML stream.public void unmarshal(Reader reader) throws XMLStreamException, UnmarshallerException
getResult method.reader - the XML reader to readXMLStreamException - if the given document is found to be malformedUnmarshallerException - if undefined properties, or classes are found in the XML stream.public static final String getEventTypeString(int eventType)
eventType - Type of event.Copyright © 2021. All rights reserved.