Class FileArea

  • All Implemented Interfaces:
    java.io.Serializable

    public final class FileArea
    extends java.lang.Object
    implements java.io.Serializable
    A file area descriptor. Used to send file contents without copying or encoding/decoding.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      FileArea​(java.lang.String path, long position, long count)
      Creates a file area.
    • Constructor Detail

      • FileArea

        public FileArea​(java.lang.String path,
                        long position,
                        long count)
        Creates a file area.
        Parameters:
        path - the path to the file
        position - the starting position of the area
        count - the length of the area
    • Method Detail

      • getPath

        public java.lang.String getPath()
        Returns:
        the path to the file
      • getPosition

        public long getPosition()
        Returns:
        the starting position of the area
      • getCount

        public long getCount()
        Returns:
        the length of the area
      • equals

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

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