|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ap.store.JavaFile
Constructor Summary | |
JavaFile(java.io.File file)
|
|
JavaFile(java.lang.String file)
|
Method Summary | |
Store |
add(java.lang.String name)
Creates a new store and adds it as children |
void |
attach(Store store)
reserved not yet defined |
Store |
child(java.lang.String name)
Returns the child store with the given name |
java.util.Collection |
children()
|
int |
compareTo(java.lang.Object obj)
|
void |
create()
Creates the store regarding to the persistent storage (if applicable) |
boolean |
delete()
Deletes the store and its content |
void |
detach(Store store)
reserved not yet defined |
boolean |
exists()
|
java.lang.String |
getName()
|
Store |
getParent()
|
java.lang.String |
getType()
|
java.io.InputStream |
input()
|
java.io.OutputStream |
output()
|
java.io.PrintWriter |
printWriter()
|
java.io.Reader |
reader()
|
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.lang.String |
toString()
|
java.io.Writer |
writer()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public JavaFile(java.io.File file)
public JavaFile(java.lang.String file)
Method Detail |
public java.lang.String getName()
getName
in interface Store
public java.lang.String getType()
getType
in interface Store
public void sync()
Store
sync
in interface Store
public void create()
Store
create
in interface Store
public boolean exists()
exists
in interface Store
public boolean delete()
Store
delete
in interface Store
public java.io.InputStream input()
input
in interface Store
public java.io.OutputStream output()
output
in interface Store
public java.io.Reader reader()
reader
in interface Store
public java.io.Writer writer()
writer
in interface Store
public java.io.PrintWriter printWriter()
printWriter
in interface Store
public Store getParent()
getParent
in interface Store
public void setParent(Store store)
setParent
in interface Store
public void attach(Store store)
Store
attach
in interface Store
public void detach(Store store)
Store
detach
in interface Store
public java.util.Collection children()
children
in interface Store
public Store child(java.lang.String name)
Store
child
in interface Store
name
- of the child to retrieve
public Store add(java.lang.String name)
Store
add
in interface Store
name
- of the new child
public boolean remove(java.lang.String name)
Store
remove
in interface Store
name
- the name of the child to remove
public int compareTo(java.lang.Object obj)
compareTo
in interface java.lang.Comparable
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |