Class FilePart


  • public class FilePart
    extends Object
    Wrapper type representing a partial File object to be sent.
    • Field Detail

      • file

        public final File 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

      • FilePart

        public FilePart​(File file,
                        long offset,
                        long count)
        Create a new partial File object.
        Parameters:
        file - 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)