|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttuwien.auto.calimero.xml.def.DefaultEntityResolver
public class DefaultEntityResolver
Default entity resolver.
Constructor Summary | |
---|---|
DefaultEntityResolver()
Creates a new entity resolver. |
Method Summary | |
---|---|
java.io.Reader |
getInputReader(java.io.InputStream is)
Creates an Reader using the supplied input stream. |
java.io.InputStream |
resolveInput(java.lang.String systemID)
Resolves the system identifier for a XML resource and wraps it into an input stream. |
java.io.OutputStream |
resolveOutput(java.lang.String systemID)
Resolves the system identifier for a XML resource and wraps it into an output stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultEntityResolver()
Method Detail |
---|
public java.io.Reader getInputReader(java.io.InputStream is) throws KNXMLException
EntityResolver
This method creates an appropriate reader based on the character encoding of the
resource specified by the input stream and the XML declaration pseudo attribute, if
available.
It should provide a default reader if a selection of the source encoding can't be
done reliably.
getInputReader
in interface EntityResolver
is
- input stream to use as input for the reader to create
KNXMLException
- on I/O error reading the input streampublic java.io.InputStream resolveInput(java.lang.String systemID) throws KNXMLException
EntityResolver
resolveInput
in interface EntityResolver
systemID
- location identifier of the XML resource
KNXMLException
- if resolving failedpublic java.io.OutputStream resolveOutput(java.lang.String systemID) throws KNXMLException
EntityResolver
resolveOutput
in interface EntityResolver
systemID
- location identifier of the XML resource
KNXMLException
- if resolving failed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |