public interface Storage
| Modifier and Type | Method and Description | 
|---|---|
void | 
close()
Closes a Storage that previously opened for data access. 
 | 
Storage | 
create(java.lang.String name)
Creates a new Storage for data access if doesn't exists yet. 
 | 
Storage | 
createDir(java.lang.String name)
Creates a new directory Storage if doesn't exists yet. 
 | 
java.lang.String | 
getCanonicalPath()
Returns the canonical path name of this Storage. 
 | 
java.lang.String | 
getName()
Returns the name of this Storage (without leading directories). 
 | 
java.lang.String | 
getPath()
Returns the path name of this Storage. 
 | 
java.lang.Object | 
getProperty(java.lang.String property)
Queries custom property associated with this Storage. 
 | 
boolean | 
isDirectory()
Indicates whether this is a directory Storage. 
 | 
boolean | 
isInJar()
Indicates whether this Storage is contained in a zip/jar file. 
 | 
java.lang.String[] | 
list()
Lists all names of Storages within this directory Storage. 
 | 
java.util.ArrayList | 
listStorage()
Lists all Storages within this directory Storage. 
 | 
long | 
modDate()
Returns date of last modification of this Storage. 
 | 
void | 
open()
Opens a Storage for access. 
 | 
Storage | 
open(java.lang.String name)
Opens a Storage for access. 
 | 
byte[] | 
read()
Reads the entire contents of this data Storage. 
 | 
int | 
read(byte[] buf)
Tries to fill a buffer with data from contents of this Storage. 
 | 
void | 
setProperty(java.lang.String property,
           java.lang.Object value)
Allows association of custom properties with this Storage. 
 | 
int | 
size()
Returns the size of contents of this data Storage. 
 | 
void | 
write(byte[] buf,
     int start,
     int len)
Write the contents of a byte array into this Storage. 
 | 
java.lang.String getName()
java.lang.String getPath()
java.lang.String getCanonicalPath()
long modDate()
boolean isDirectory()
boolean isInJar()
void setProperty(java.lang.String property,
                 java.lang.Object value)
property - property keyvalue - property valuejava.lang.Object getProperty(java.lang.String property)
property - property keyint size() throws java.io.IOException
java.io.IOExceptionbyte[] read()
     throws java.io.IOException
java.io.IOExceptionint read(byte[] buf) throws java.io.IOException
buf - buffer to be filledjava.io.IOExceptionvoid write(byte[] buf,
           int start,
           int len)
    throws java.io.IOException
buf - buffer to be writtenstart - offset within buffer where data startslen - amount of data from buffer to be writtenjava.io.IOExceptionjava.lang.String[] list()
java.util.ArrayList listStorage()
void open() throws java.io.IOException
java.io.IOExceptionStorage open(java.lang.String name)
name - of Storage to be accessedStorage create(java.lang.String name) throws java.io.IOException
name - of Storage to be createdjava.io.IOExceptionStorage createDir(java.lang.String name) throws java.io.IOException
name - of Storage to be createdjava.io.IOExceptionvoid close()