Class DefaultFileRegion

    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultFileRegion​(java.io.File file, long position, long count)
      Create a new instance using the given File.
      DefaultFileRegion​(java.nio.channels.FileChannel fileChannel, long position, long count)
      Create a new instance
    • Constructor Detail

      • DefaultFileRegion

        public DefaultFileRegion​(java.nio.channels.FileChannel fileChannel,
                                 long position,
                                 long count)
        Create a new instance
        Parameters:
        fileChannel - the FileChannel which should be transferred
        position - the position from which the transfer should start
        count - the number of bytes to transfer
      • DefaultFileRegion

        public DefaultFileRegion​(java.io.File file,
                                 long position,
                                 long count)
        Create a new instance using the given File. The File will be opened lazily or explicitly via open().
        Parameters:
        file - the File which should be transferred
        position - the position from which the transfer should start
        count - the number of bytes to transfer