ByteBufferInputStream

com.netflix.atlas.core.util.ByteBufferInputStream
class ByteBufferInputStream(buffer: ByteBuffer) extends InputStream

Wraps a ByteBuffer so it can be used with interfaces that require an InputStream. The buffer should not be modified outside of the reader until reading is complete.

Attributes

Graph
Supertypes
class InputStream
trait Closeable
trait AutoCloseable
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def available(): Int

Attributes

Definition Classes
InputStream
override def close(): Unit

Attributes

Definition Classes
InputStream -> Closeable -> AutoCloseable
override def mark(readlimit: Int): Unit

Attributes

Definition Classes
InputStream
override def markSupported(): Boolean

Attributes

Definition Classes
InputStream
override def read(): Int

Attributes

Definition Classes
InputStream
override def read(buf: Array[Byte], offset: Int, length: Int): Int

Attributes

Definition Classes
InputStream
override def reset(): Unit

Attributes

Definition Classes
InputStream
override def skip(n: Long): Long

Attributes

Definition Classes
InputStream

Inherited methods

def read(x$0: Array[Byte]): Int

Attributes

Inherited from:
InputStream
def readAllBytes(): Array[Byte]

Attributes

Inherited from:
InputStream
def readNBytes(x$0: Array[Byte], x$1: Int, x$2: Int): Int

Attributes

Inherited from:
InputStream
def readNBytes(x$0: Int): Array[Byte]

Attributes

Inherited from:
InputStream
def skipNBytes(x$0: Long): Unit

Attributes

Inherited from:
InputStream
def transferTo(x$0: OutputStream): Long

Attributes

Inherited from:
InputStream