Save This Page
Home » cocoon-2.1.11-src » org.apache.cocoon.poi.poifs » filesystem » [javadoc | source]
org.apache.cocoon.poi.poifs.filesystem
public class: Filesystem [javadoc | source]
java.lang.Object
   org.apache.cocoon.poi.poifs.filesystem.Filesystem
This is the main class of the POIFS system; it manages the entire life cycle of the filesystem.
Constructor:
 public Filesystem() 
 public Filesystem(InputStream stream) throws IOException 
    Create a Filesystem from an InputStream
    Parameters:
    stream - the InputStream from which to read the data
    Throws:
    IOException - on errors reading, or on invalid data
    exception: IOException - on errors reading, or on invalid data
Method from org.apache.cocoon.poi.poifs.filesystem.Filesystem Summary:
addDirectory,   addDocument,   createDirectory,   createDocument,   createDocumentInputStream,   getRoot,   main,   remove,   writeFilesystem
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.cocoon.poi.poifs.filesystem.Filesystem Detail:
  void addDirectory(DirectoryProperty directory) 
    add a new DirectoryProperty
  void addDocument(Document document) 
    add a new Document
 public DirectoryEntry createDirectory(String name) throws IOException 
    create a new DirectoryEntry in the root directory
 public DocumentEntry createDocument(InputStream stream,
    String name) throws IOException 
    Create a new document to be added to the root directory
 public DocumentInputStream createDocumentInputStream(String documentName) throws IOException 
    open a document in the root entry's list of entries
 public DirectoryEntry getRoot() 
    get the root entry
 public static  void main(String[] args) throws IOException 
    read in a file and write it back out again
  void remove(EntryNode entry) 
    remove an entry
 public  void writeFilesystem(OutputStream stream) throws IOException 
    Write the filesystem out