|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.freehep.xml.io.XMLIOStreamManager
public class XMLIOStreamManager
Class XMLIOStreamManager deals with xml files.
| Constructor Summary | |
|---|---|
XMLIOStreamManager()
The main constructor |
|
XMLIOStreamManager(InputStream xmlInputStream,
OutputStream xmlOutputStream)
The main constructor |
|
| Method Summary | |
|---|---|
org.jdom.input.SAXBuilder |
getBuilder()
|
org.jdom.Element |
getRootElement()
From the input Stream convert the text in xml format and return the main root Element |
void |
saveRootElement(org.jdom.Element rootEl)
Write to the output Stream performing an xml to text conversion |
void |
saveRootElement(org.jdom.Element rootEl,
org.jdom.DocType docType)
|
void |
setXMLInputStream(InputStream xmlInputStream)
Set the input Stream |
void |
setXMLInputStream(InputStream xmlInputStream,
String systemId)
|
void |
setXMLOutputStream(OutputStream xmlOutputStream)
Set the output Stream |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLIOStreamManager()
public XMLIOStreamManager(InputStream xmlInputStream,
OutputStream xmlOutputStream)
xmlInputStream - the input StreamxmlOutputStream - the output Stream| Method Detail |
|---|
public org.jdom.input.SAXBuilder getBuilder()
public void setXMLInputStream(InputStream xmlInputStream)
xmlInputStream - the input Stream
public void setXMLInputStream(InputStream xmlInputStream,
String systemId)
public void setXMLOutputStream(OutputStream xmlOutputStream)
xmlOutputStream - the output Stream
public org.jdom.Element getRootElement()
throws org.jdom.JDOMException,
IOException
org.jdom.JDOMException - from the build method of SAXBuilder
IOMException - for the specific implementations of InputStream
IOExceptionSAXBuilder.build( InputStream )
public void saveRootElement(org.jdom.Element rootEl)
throws IOException
rootEl - is the root Element that gets converted
to text and dumped in the output file.
IOException - from the output method of XMLOutputterXMLOutputter.output( Document, OutputStream )
public void saveRootElement(org.jdom.Element rootEl,
org.jdom.DocType docType)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||