Class PathPart


  • public class PathPart
    extends Object
    Wrapper type representing the Path to a partial file object to be sent.
    • Field Detail

      • file

        public final Path file
        The file to send
      • offset

        public final long offset
        The starting byte of the file
      • count

        public final long count
        The number of bytes to send
    • Constructor Detail

      • PathPart

        public PathPart​(Path file,
                        long offset,
                        long count)
        Create a new partial Path object.
        Parameters:
        path - The file to send
        offset - The starting byte of the file (must be >= 0)
        count - The number of bytes to send (must be >= 0 and offset+count <= file size)