public class File extends Object
| Modifier and Type | Field and Description |
|---|---|
protected DatabaseEntry |
data |
protected DatabaseEntry |
key |
protected long |
length |
protected String |
name |
protected static Random |
random |
protected long |
timeModified |
protected byte[] |
uuid |
| Modifier | Constructor and Description |
|---|---|
protected |
File(DbDirectory directory,
String name,
boolean create) |
protected |
File(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
delete(DbDirectory directory) |
protected boolean |
exists(DbDirectory directory) |
protected byte[] |
getKey() |
protected long |
getLength() |
protected String |
getName() |
protected long |
getTimeModified() |
protected void |
modify(DbDirectory directory,
long length,
long timeModified) |
protected void |
rename(DbDirectory directory,
String name) |
protected static Random random
protected DatabaseEntry key
protected DatabaseEntry data
protected long length
protected long timeModified
protected String name
protected byte[] uuid
protected File(String name) throws IOException
IOExceptionprotected File(DbDirectory directory, String name, boolean create) throws IOException
IOExceptionprotected String getName()
protected byte[] getKey()
throws IOException
IOExceptionprotected long getLength()
protected long getTimeModified()
protected boolean exists(DbDirectory directory) throws IOException
IOExceptionprotected void modify(DbDirectory directory, long length, long timeModified) throws IOException
IOExceptionprotected void delete(DbDirectory directory) throws IOException
IOExceptionprotected void rename(DbDirectory directory, String name) throws IOException
IOExceptionCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.