|
||||||||||
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,
Reader reader)
Close a byte stream returned by open() , only if it was
actually opened by open. |
static 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(Reader reader)
Determine an document reader is attached to an XML document by checking the first few bytes. |
static Reader |
open(InputSource inputSource)
Open a character input stream for an input source if one is not already open. |
static InputStream |
openSystemId(String systemId)
Open a bytestream given a system id. |
Methods inherited from class java.lang.Object |
|
Method Detail |
public static InputStream openSystemId(String systemId) throws IOException
public static Reader open(InputSource inputSource) throws IOException
inputSource
- Specification of the document to open.public static boolean isOpen(InputSource input)
public static void close(InputSource input) throws IOException
public static void closeIfOpened(InputSource inputSource, Reader reader) throws 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 String getName(InputSource input)
public static boolean isXMLDocument(Reader reader) throws IOException
reader
- Character stream.public static boolean isXMLDocument(InputSource inputSource) throws IOException
inputSource
- Specification of the document to examine.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |