org.jopendocument.dom
Class OOFileDocument

java.lang.Object
  extended by org.jopendocument.dom.ODPackage
      extended by org.jopendocument.dom.OOFileDocument

public class OOFileDocument
extends ODPackage

An opendocument file.

Author:
ILM Informatique 2 août 2004

Constructor Summary
OOFileDocument(java.io.File f)
           
OOFileDocument(java.util.Map<java.lang.String,java.lang.Object> files)
           
 
Method Summary
 java.io.File getFile()
           
 java.io.File save()
          Save the content of this package to our file, overwriting it if it exists.
 void setFile(java.io.File f)
           
 
Methods inherited from class org.jopendocument.dom.ODPackage
getBinaryFile, getContent, getContentType, getDocument, getFiles, getMimeType, getVersion, getXMLFile, putFile, save, toSingle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OOFileDocument

public OOFileDocument(java.io.File f)
               throws java.io.IOException
Throws:
java.io.IOException

OOFileDocument

public OOFileDocument(java.util.Map<java.lang.String,java.lang.Object> files)
Method Detail

getFile

public java.io.File getFile()

setFile

public void setFile(java.io.File f)

save

public java.io.File save()
                  throws java.io.IOException
Save the content of this package to our file, overwriting it if it exists.

Returns:
the saved file.
Throws:
java.io.IOException - if an error occurs while saving.