Class FileInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    class FileInputStream
    extends java.io.InputStream
    • Field Detail

      • readTimeout

        private final long readTimeout
      • file

        private File file
      • offset

        private long offset
      • curr

        private int curr
      • buf

        private byte[] buf
      • isClosed

        private boolean isClosed
      • nextResponse

        private java.util.concurrent.Future<SMB2ReadResponse> nextResponse
      • logger

        private static final org.slf4j.Logger logger
      • bufferSize

        private int bufferSize
    • Constructor Detail

      • FileInputStream

        FileInputStream​(File file,
                        int bufferSize,
                        long readTimeout,
                        ProgressListener progressListener)
    • Method Detail

      • read

        public int read()
                 throws java.io.IOException
        Specified by:
        read in class java.io.InputStream
        Throws:
        java.io.IOException
      • read

        public int read​(byte[] b)
                 throws java.io.IOException
        Overrides:
        read in class java.io.InputStream
        Throws:
        java.io.IOException
      • read

        public int read​(byte[] b,
                        int off,
                        int len)
                 throws java.io.IOException
        Overrides:
        read in class java.io.InputStream
        Throws:
        java.io.IOException
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class java.io.InputStream
      • available

        public int available()
        Overrides:
        available in class java.io.InputStream
      • skip

        public long skip​(long n)
        Overrides:
        skip in class java.io.InputStream
      • loadBuffer

        private void loadBuffer()
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • sendRequest

        private java.util.concurrent.Future<SMB2ReadResponse> sendRequest()