|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.groovyj.filesystem.Filesystem
Filesystem is a minifilesystem where you can store records (files), with deleted space being managed somewhat efficiently. It's particularly useful when your record size is less than about 10k, generally on the order of 100 bytes, and they are subject to getting deleted all the time.
Got a comment about this class? Found a bug? Got an enhancement? Just want to say hi? Visit the Groovy Java Filesystem Project Home Page.
Visit the Groovy Java Home Page for information about other Groovy Java open source projects.
This class is covered by the GNU General Public License (GPL).
Inner Class Summary | |
class |
Filesystem.File
Filesystem.File is a class containing all the operations you can do to a file in the Filesystem. |
Constructor Summary | |
Filesystem(java.lang.String name)
Creates a new Filesystem or opens an existing one. |
Method Summary | |
void |
close()
Closes this filesystem |
long |
length()
Returns the number of bytes in this filesystem. |
static void |
main(java.lang.String[] args)
Runs a bunch of tests. |
Filesystem.File |
open()
Opens a new file in the filesystem. |
Filesystem.File |
open(long offset)
Opens an existing file in the filesystem, given the offset into the filesystem at which the file begins. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Filesystem(java.lang.String name) throws java.io.IOException
Method Detail |
public long length() throws java.io.IOException
public void close() throws java.io.IOException
java.io.File#close()
public Filesystem.File open() throws java.io.IOException
public Filesystem.File open(long offset) throws java.io.IOException
offset
- the offset into the filesystem at which the file begins.public static void main(java.lang.String[] args) throws java.lang.Exception
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |