|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.freecol.common.util.XMLStream
public class XMLStream
A wrapper for XMLStreamReader
and the underlying stream.
The close method on XMLStreamReader
doesn't close
the underlying stream. This class is a wrapper for the
XMLStreamReader
and the underlying stream with
a close()
method which close them both.
Constructor Summary | |
---|---|
XMLStream(java.io.InputStream inputStream)
Creates a new XMLStream . |
Method Summary | |
---|---|
void |
close()
Closes both the XMLStreamReader and
the underlying stream. |
javax.xml.stream.XMLStreamReader |
getXMLStreamReader()
Get the XMLStreamReader . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLStream(java.io.InputStream inputStream) throws java.io.IOException
XMLStream
.
inputStream
- The InputStream
to create
a XMLStreamReader
for.
java.io.IOException
- if thrown while creating the
XMLStreamReader
.Method Detail |
---|
public javax.xml.stream.XMLStreamReader getXMLStreamReader()
XMLStreamReader
.
XMLStreamReader
created using
the underlying stream provided by the contructor
on this object.public void close()
XMLStreamReader
and
the underlying stream.
close
in interface java.io.Closeable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |