Documentation of 'org.apache.derby.impl.io.vfmem.DataStoreEntry' Java class
DataStoreEntry
org.apache.derby.impl.io.vfmem

Class DataStoreEntry



  • public class DataStoreEntry
    extends java.lang.Object
    A 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
      boolean isDirectory()
      Tells if this entry is a directory.
      boolean isReadOnly()
      Tells if this entry is read-only.
      long length()
      Returns the length of this entry.
      void setLength(long newLength)
      Sets the length of this entry.
      void setReadOnly()
      Makes this entry read-only.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DataStoreEntry

        public DataStoreEntry(java.lang.String path,
                              boolean isDir)
        Creates a new data store entry.
        Parameters:
        path - the path of the entry
        isDir - whether the entry is a directory or a regular file
    • Method Detail

      • isDirectory

        public boolean isDirectory()
        Tells if this entry is a directory.
        Returns:
        true if directory, false otherwise.
      • 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:
        true is read-only, false if 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

Ads help maintain this website.