final class NioBufferedFileInputStream extends InputStream
InputStream
implementation which uses direct buffer
to read a file to avoid extra copy of data between Java and
native memory which happens when using java.io.BufferedInputStream
.
Unfortunately, this is not something already available in JDK,
sun.nio.ch.ChannelInputStream
supports reading a file using nio,
but does not support buffering.
- Alphabetic
- By Inheritance
- NioBufferedFileInputStream
- InputStream
- Closeable
- AutoCloseable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
Value Members
- def available(): Int
- Definition Classes
- NioBufferedFileInputStream → InputStream
- Annotations
- @Override()
- def close(): Unit
- Definition Classes
- NioBufferedFileInputStream → InputStream → Closeable → AutoCloseable
- Annotations
- @Override()
- def mark(arg0: Int): Unit
- Definition Classes
- InputStream
- def markSupported(): Boolean
- Definition Classes
- InputStream
- def read(b: Array[Byte], offset: Int, len: Int): Int
- Definition Classes
- NioBufferedFileInputStream → InputStream
- Annotations
- @Override()
- def read(): Int
- Definition Classes
- NioBufferedFileInputStream → InputStream
- Annotations
- @Override()
- def read(arg0: Array[Byte]): Int
- Definition Classes
- InputStream
- Annotations
- @throws(classOf[java.io.IOException])
- def readAllBytes(): Array[Byte]
- Definition Classes
- InputStream
- Annotations
- @throws(classOf[java.io.IOException])
- def readNBytes(arg0: Array[Byte], arg1: Int, arg2: Int): Int
- Definition Classes
- InputStream
- Annotations
- @throws(classOf[java.io.IOException])
- def readNBytes(arg0: Int): Array[Byte]
- Definition Classes
- InputStream
- Annotations
- @throws(classOf[java.io.IOException])
- def reset(): Unit
- Definition Classes
- InputStream
- Annotations
- @throws(classOf[java.io.IOException])
- def skip(n: Long): Long
- Definition Classes
- NioBufferedFileInputStream → InputStream
- Annotations
- @Override()
- def skipNBytes(arg0: Long): Unit
- Definition Classes
- InputStream
- Annotations
- @throws(classOf[java.io.IOException])
- def transferTo(arg0: OutputStream): Long
- Definition Classes
- InputStream
- Annotations
- @throws(classOf[java.io.IOException])