Package cz.martlin.xspf.util
Class XMLFileLoaderStorer
- java.lang.Object
-
- cz.martlin.xspf.util.XMLFileLoaderStorer
-
public class XMLFileLoaderStorer extends Object
Just an separated helper class for the XML document IO, thus loading (parsing) and saving (serializing). TODO: add load from InputStream/Reader/String?, write to OutputStream/Writer/String?- Author:
- martin
-
-
Constructor Summary
Constructors Constructor Description XMLFileLoaderStorer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DocumentcreateEmptyDocument()Creates the empty XML DOM document instance.static DocumentloadDocument(File file)Loads the XML DOM document from the given file.static voidsaveDocument(Document document, File file)Saves the XML DOM document to the given file.
-
-
-
Method Detail
-
loadDocument
public static Document loadDocument(File file) throws XSPFException
Loads the XML DOM document from the given file.- Parameters:
file-- Returns:
- Throws:
XSPFException
-
createEmptyDocument
public static Document createEmptyDocument() throws XSPFException
Creates the empty XML DOM document instance.- Returns:
- Throws:
XSPFException
-
saveDocument
public static void saveDocument(Document document, File file) throws XSPFException
Saves the XML DOM document to the given file.- Parameters:
document-file-- Throws:
XSPFException
-
-