|
Enhydra 3.1 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.xml.io.InputSourceOps
Various operations on InputSources.
Method Summary | |
static void |
close(InputSource input)
Close an InputSource, if open. |
static void |
closeIfOpened(InputSource inputSource,
java.io.Reader reader)
Close a byte stream returned by open() , only if it was
actually opened by open. |
static java.lang.String |
getName(InputSource input)
Get a description of an input source. |
static boolean |
isOpen(InputSource input)
Determine if an input source has an open byte or character stream. |
static boolean |
isXMLDocument(InputSource inputSource)
Determine an input source points to an XML document. |
static boolean |
isXMLDocument(java.io.Reader reader)
Determine an document reader is attached to an XML document by checking the first few bytes. |
static java.io.Reader |
open(InputSource inputSource)
Open a character input stream for an input source if one is not already open. |
static java.io.InputStream |
openSystemId(java.lang.String systemId)
Open a bytestream given a system id. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Method Detail |
public static java.io.InputStream openSystemId(java.lang.String systemId) throws java.io.IOException
public static java.io.Reader open(InputSource inputSource) throws java.io.IOException
inputSource
- Specification of the document to open.public static boolean isOpen(InputSource input)
public static void close(InputSource input) throws java.io.IOException
public static void closeIfOpened(InputSource inputSource, java.io.Reader reader) throws java.io.IOException
open()
, only if it was
actually opened by open.inputSource
- Specification of the document that was opened.reader
- The character stream returned by open.public static java.lang.String getName(InputSource input)
public static boolean isXMLDocument(java.io.Reader reader) throws java.io.IOException
reader
- Character stream.public static boolean isXMLDocument(InputSource inputSource) throws java.io.IOException
inputSource
- Specification of the document to examine.
|
Enhydra 3.1 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |