public class FileInputStreamPlus extends RebufferingInputStream
DataInputPlus.DataInputStreamPlus
buffer
Constructor and Description |
---|
FileInputStreamPlus(File file) |
FileInputStreamPlus(java.nio.file.Path path) |
FileInputStreamPlus(java.nio.file.Path path,
int bufferSize) |
FileInputStreamPlus(java.lang.String file) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
java.nio.channels.FileChannel |
getChannel() |
protected void |
reBuffer()
Implementations must implement this method to refill the buffer.
|
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readFully, readInt, readLine, readLong, readPrimitiveSlowly, readShort, readUnsignedByte, readUnsignedShort, readUnsignedVInt, readUTF, readVInt, skipBytes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
skipBytesFully
public FileInputStreamPlus(java.lang.String file) throws java.nio.file.NoSuchFileException
java.nio.file.NoSuchFileException
public FileInputStreamPlus(File file) throws java.nio.file.NoSuchFileException
java.nio.file.NoSuchFileException
public FileInputStreamPlus(java.nio.file.Path path) throws java.nio.file.NoSuchFileException
java.nio.file.NoSuchFileException
public FileInputStreamPlus(java.nio.file.Path path, int bufferSize) throws java.nio.file.NoSuchFileException
java.nio.file.NoSuchFileException
protected void reBuffer() throws java.io.IOException
RebufferingInputStream
reBuffer
in class RebufferingInputStream
java.io.IOException
public java.nio.channels.FileChannel getChannel()
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.InputStream
java.io.IOException
Copyright © 2009-2022 The Apache Software Foundation