public final class XmlSourceFormat extends Object implements StreamSourceFormat
| Constructor and Description |
|---|
XmlSourceFormat() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other)
Checks whether other is equal to this instance.
|
String |
getFilenameExtension()
Gets the filename extension this source type typically has.
|
String |
getKey()
Returns an unique key for the source type.
|
int |
hashCode()
Returns a hash code of this instance consistent with equals..
|
SourceElement |
parse(InputStream xmlStream,
ControllerState controllerState)
Parses a stream containing xml data and creates a source element
hierarchy from it.
|
String |
toString() |
public String getKey()
getKey in interface StreamSourceFormatpublic String getFilenameExtension()
getFilenameExtension in interface StreamSourceFormatpublic SourceElement parse(InputStream xmlStream, ControllerState controllerState) throws SourceException
parse in interface StreamSourceFormatxmlStream - the stream containing the xml data, not null.controllerState - the controller state, not null.SourceException - if an error occurs reading the input stream,
parsing the XML data or if the SAX parser is not configured
correctly.public int hashCode()
public boolean equals(Object other)
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.