com.ibm.jtopenlite.file

Class FileHandle

  • java.lang.Object
    • com.ibm.jtopenlite.file.FileHandle
  • All Implemented Interfaces:
    java.lang.Comparable<FileHandle>


    public final class FileHandle
    extends java.lang.Object
    implements java.lang.Comparable<FileHandle>
    • Method Detail

      • createEmptyHandle

        public static FileHandle createEmptyHandle()
      • equals

        public boolean equals(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • compareTo

        public int compareTo(FileHandle h)
        Specified by:
        compareTo in interface java.lang.Comparable<FileHandle>
      • isSymlink

        public boolean isSymlink()
      • isDirectory

        public boolean isDirectory()
      • getPath

        public java.lang.String getPath()
      • getOffset

        public long getOffset()
        Returns the current byte offset in the file where the next read or write operation will take place.
      • setOffset

        public void setOffset(long offset)
        Sets the byte offset in the file for the next read or write operation; the offset is automatically incremented after normal read or write operations.
      • getShareOption

        public int getShareOption()
      • getOpenType

        public int getOpenType()
      • isOpen

        public boolean isOpen()
      • getName

        public java.lang.String getName()
      • getDataCCSID

        public int getDataCCSID()
      • getTimestampCreated

        public long getTimestampCreated()
      • getTimestampModified

        public long getTimestampModified()
      • getTimestampAccessed

        public long getTimestampAccessed()
      • getSize

        public long getSize()
      • getLastStatus

        public int getLastStatus()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object