Class FileInputStreamPlus

    • Field Detail

      • file

        public final File file
    • Constructor Detail

      • FileInputStreamPlus

        public FileInputStreamPlus​(java.lang.String file)
                            throws java.nio.file.NoSuchFileException
        Throws:
        java.nio.file.NoSuchFileException
      • FileInputStreamPlus

        public FileInputStreamPlus​(java.nio.file.Path path)
                            throws java.nio.file.NoSuchFileException
        Throws:
        java.nio.file.NoSuchFileException
      • FileInputStreamPlus

        public FileInputStreamPlus​(File file)
                            throws java.nio.file.NoSuchFileException
        Throws:
        java.nio.file.NoSuchFileException
      • FileInputStreamPlus

        public FileInputStreamPlus​(File file,
                                   int bufferSize)
                            throws java.nio.file.NoSuchFileException
        Throws:
        java.nio.file.NoSuchFileException
    • Method Detail

      • reBuffer

        protected void reBuffer()
                         throws java.io.IOException
        Description copied from class: RebufferingInputStream
        Implementations must implement this method to refill the buffer. They can expect the buffer to be empty when this method is invoked.
        Specified by:
        reBuffer in class RebufferingInputStream
        Throws:
        java.io.IOException
      • getChannel

        public java.nio.channels.FileChannel getChannel()
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class java.io.InputStream
        Throws:
        java.io.IOException