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
- î
final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef â Any
- î
final def ##: Int
- Definition Classes
- AnyRef â Any
- î
final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef â Any
- î
final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- î
def available(): Int
- Definition Classes
- NioBufferedFileInputStream â InputStream
- Annotations
- @Override()
- î
def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- î
def close(): Unit
- Definition Classes
- NioBufferedFileInputStream â InputStream â Closeable â AutoCloseable
- Annotations
- @Override()
- î
final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- î
def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef â Any
- î
final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef â Any
- Annotations
- @IntrinsicCandidate() @native()
- î
def hashCode(): Int
- Definition Classes
- AnyRef â Any
- Annotations
- @IntrinsicCandidate() @native()
- î
final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- î
def mark(arg0: Int): Unit
- Definition Classes
- InputStream
- î
def markSupported(): Boolean
- Definition Classes
- InputStream
- î
final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- î
final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- î
final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- î
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])
- î
final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- î
def toString(): String
- Definition Classes
- AnyRef â Any
- î
def transferTo(arg0: OutputStream): Long
- Definition Classes
- InputStream
- Annotations
- @throws(classOf[java.io.IOException])
- î
final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- î
final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- î
final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- î
def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)