org.apache.derby.impl.io.vfmem
Class DataStoreEntry
- java.lang.Object
-
- org.apache.derby.impl.io.vfmem.DataStoreEntry
-
public class DataStoreEntry extends java.lang.ObjectA data store entry representing either a file or a directory.If the entry is a directory, it doesn't create a data object.
-
-
Constructor Summary
Constructors Constructor and Description DataStoreEntry(java.lang.String path, boolean isDir)Creates a new data store entry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanisDirectory()Tells if this entry is a directory.booleanisReadOnly()Tells if this entry is read-only.longlength()Returns the length of this entry.voidsetLength(long newLength)Sets the length of this entry.voidsetReadOnly()Makes this entry read-only.
-
-
-
Constructor Detail
-
DataStoreEntry
public DataStoreEntry(java.lang.String path, boolean isDir)Creates a new data store entry.- Parameters:
path- the path of the entryisDir- whether the entry is a directory or a regular file
-
-
Method Detail
-
isDirectory
public boolean isDirectory()
Tells if this entry is a directory.- Returns:
trueif directory,falseotherwise.
-
length
public long length()
Returns the length of this entry.- Returns:
- The length in bytes.
-
setReadOnly
public void setReadOnly()
Makes this entry read-only.
-
isReadOnly
public boolean isReadOnly()
Tells if this entry is read-only.- Returns:
trueis read-only,falseif not.
-
setLength
public void setLength(long newLength)
Sets the length of this entry.- Parameters:
newLength- the length in number of bytes
-
-
DataMelt 3.0 © DataMelt by jWork.ORG