|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.freehep.xml.io.XMLIOStreamManager org.freehep.xml.io.XMLIOFileManager
Class XMLIOFileManager deals with xml files.
Constructor Summary | |
XMLIOFileManager(String fileName)
|
Method Summary | |
org.jdom.Element |
getRootElement()
After opening the input file, converts the text in xml format and returns the main root Element |
boolean |
isXMLFileZipped()
|
void |
saveRootElement(org.jdom.Element rootEl)
Write to the output Stream performing an xml to text conversion |
void |
saveRootElement(org.jdom.Element rootEl,
String docName,
String sysId)
Write the output file performing an xml to text conversion |
void |
setXMLFileZipped(boolean isZipped)
|
Methods inherited from class org.freehep.xml.io.XMLIOStreamManager |
getBuilder, saveRootElement, setXMLInputStream, setXMLInputStream, setXMLOutputStream |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XMLIOFileManager(String fileName)
Method Detail |
public org.jdom.Element getRootElement() throws org.jdom.JDOMException, IOException
getRootElement
in class XMLIOStreamManager
null
if something
went wrong in the text to xml conversion (the trace is
printed).
org.jdom.JDOMException
- from XMLIOStreamManager
IOException
- from XMLIOStreamManagerXMLIOStreamManager.getRootElement()
,
XMLIOStreamManager.getRootElement()
public void saveRootElement(org.jdom.Element rootEl, String docName, String sysId) throws IOException
rootEl
- is the root Element that gets converted
to text and dumped in the output file.
IOException
- from XMLIOStreamManagerXMLIOStreamManager.saveRootElement( Element )
public void saveRootElement(org.jdom.Element rootEl) throws IOException
XMLIOStreamManager
saveRootElement
in class XMLIOStreamManager
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 boolean isXMLFileZipped()
public void setXMLFileZipped(boolean isZipped)
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |