com.ap.store
Class ZipStore

java.lang.Object
  extended bycom.ap.store.JavaFile
      extended bycom.ap.store.ZipStore
All Implemented Interfaces:
java.lang.Comparable, Store

public class ZipStore
extends JavaFile


Constructor Summary
ZipStore(java.io.File file)
           
ZipStore(java.lang.String file)
           
 
Method Summary
 Store add(java.lang.String name)
          Creates a new store and adds it as children
 int compareTo(java.lang.Object obj)
           
 void create()
          Creates the store regarding to the persistent storage (if applicable)
 void createChild(java.lang.String path)
           
 boolean delete()
          Deletes the store and its content
 java.lang.String getName()
           
 java.lang.String getType()
           
 java.io.InputStream input()
           
 java.io.InputStream input(java.lang.String path)
           
 java.io.OutputStream output()
           
 java.io.OutputStream output(java.lang.String path)
           
 java.io.PrintWriter printWriter()
           
 java.io.Reader reader()
           
 java.io.Reader reader(java.lang.String path)
           
 boolean remove(java.lang.String name)
          Removes the child with the given name from the children list
 void setParent(Store store)
           
 void sync()
          Flushes, writes, on persistent storage data that need to be saved (if applicable)
 java.io.Writer writer()
           
 java.io.Writer writer(java.lang.String path)
           
 
Methods inherited from class com.ap.store.JavaFile
attach, child, children, detach, exists, getParent, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ZipStore

public ZipStore(java.io.File file)

ZipStore

public ZipStore(java.lang.String file)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface Store
Overrides:
getName in class JavaFile

getType

public java.lang.String getType()
Specified by:
getType in interface Store
Overrides:
getType in class JavaFile

create

public void create()
Description copied from interface: Store
Creates the store regarding to the persistent storage (if applicable)

Specified by:
create in interface Store
Overrides:
create in class JavaFile

delete

public boolean delete()
Description copied from interface: Store
Deletes the store and its content

Specified by:
delete in interface Store
Overrides:
delete in class JavaFile

input

public java.io.InputStream input()
Specified by:
input in interface Store
Overrides:
input in class JavaFile

output

public java.io.OutputStream output()
Specified by:
output in interface Store
Overrides:
output in class JavaFile

reader

public java.io.Reader reader()
Specified by:
reader in interface Store
Overrides:
reader in class JavaFile

writer

public java.io.Writer writer()
Specified by:
writer in interface Store
Overrides:
writer in class JavaFile

printWriter

public java.io.PrintWriter printWriter()
Specified by:
printWriter in interface Store
Overrides:
printWriter in class JavaFile

setParent

public void setParent(Store store)
Specified by:
setParent in interface Store
Overrides:
setParent in class JavaFile

add

public Store add(java.lang.String name)
Description copied from interface: Store
Creates a new store and adds it as children

Specified by:
add in interface Store
Overrides:
add in class JavaFile

remove

public boolean remove(java.lang.String name)
Description copied from interface: Store
Removes the child with the given name from the children list

Specified by:
remove in interface Store
Overrides:
remove in class JavaFile

sync

public void sync()
Description copied from interface: Store
Flushes, writes, on persistent storage data that need to be saved (if applicable)

Specified by:
sync in interface Store
Overrides:
sync in class JavaFile

createChild

public void createChild(java.lang.String path)

input

public java.io.InputStream input(java.lang.String path)

output

public java.io.OutputStream output(java.lang.String path)

reader

public java.io.Reader reader(java.lang.String path)

writer

public java.io.Writer writer(java.lang.String path)

compareTo

public int compareTo(java.lang.Object obj)
Specified by:
compareTo in interface java.lang.Comparable
Overrides:
compareTo in class JavaFile