Class

molecule.utils

ByteArrayListInputStream

Related Doc: package utils

Permalink

class ByteArrayListInputStream extends InputStream

Class use for compatibility with existing blocking java serialization frameworks e.g. Avro.

Linear Supertypes
InputStream, Closeable, AutoCloseable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ByteArrayListInputStream
  2. InputStream
  3. Closeable
  4. AutoCloseable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ByteArrayListInputStream(count: Int, arrays: List[Array[Byte]])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def available(): Int

    Permalink

    Returns the number of remaining bytes that can be read (or skipped over) from this input stream.

    Returns the number of remaining bytes that can be read (or skipped over) from this input stream.

    The value returned is count - pos, which is the number of bytes remaining to be read from the input buffer.

    returns

    the number of remaining bytes that can be read (or skipped over) from this input stream without blocking.

    Definition Classes
    ByteArrayListInputStream → InputStream
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def close(): Unit

    Permalink
    Definition Classes
    InputStream → Closeable → AutoCloseable
    Annotations
    @throws( classOf[java.io.IOException] )
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. def mark(arg0: Int): Unit

    Permalink
    Definition Classes
    InputStream
  15. def markSupported(): Boolean

    Permalink

    Tests if this InputStream supports mark/reset.

    Tests if this InputStream supports mark/reset. The markSupported method of ByteArrayInputStream always returns true.

    Definition Classes
    ByteArrayListInputStream → InputStream
    Since

    JDK1.1

  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. def read(b: Array[Byte], off: Int, len: Int): Int

    Permalink

    Reads up to len bytes of data into an array of bytes from this input stream.

    Reads up to len bytes of data into an array of bytes from this input stream. If pos equals count, then -1 is returned to indicate end of file. Otherwise, the number k of bytes read is equal to the smaller of len and count-pos. If k is positive, then bytes buf[pos] through buf[pos+k-1] are copied into b[off] through b[off+k-1] in the manner performed by System.arraycopy. The value k is added into pos and k is returned.

    This read method cannot block.

    b

    the buffer into which the data is read.

    off

    the start offset in the destination array b

    len

    the maximum number of bytes read.

    returns

    the total number of bytes read into the buffer, or -1 if there is no more data because the end of the stream has been reached.

    Definition Classes
    ByteArrayListInputStream → InputStream
    Exceptions thrown

    IndexOutOfBoundsException If off is negative, len is negative, or len is greater than b.length - off

    NullPointerException If b is null.

  20. def read(): Int

    Permalink

    Reads the next byte of data from this input stream.

    Reads the next byte of data from this input stream. The value byte is returned as an int in the range 0 to 255. If no byte is available because the end of the stream has been reached, the value -1 is returned.

    This read method cannot block.

    returns

    the next byte of data, or -1 if the end of the stream has been reached.

    Definition Classes
    ByteArrayListInputStream → InputStream
  21. def read(arg0: Array[Byte]): Int

    Permalink
    Definition Classes
    InputStream
    Annotations
    @throws( classOf[java.io.IOException] )
  22. def reset(): Unit

    Permalink

    Resets the buffer to the marked position.

    Resets the buffer to the marked position. The marked position is 0 unless another position was marked or an offset was specified in the constructor.

    Definition Classes
    ByteArrayListInputStream → InputStream
  23. def skip(_n: Long): Long

    Permalink

    Skips n bytes of input from this input stream.

    Skips n bytes of input from this input stream. Fewer bytes might be skipped if the end of the input stream is reached. The actual number k of bytes to be skipped is equal to the smaller of n and count-pos. The value k is added into pos and k is returned.

    returns

    the actual number of bytes skipped.

    Definition Classes
    ByteArrayListInputStream → InputStream
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  25. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from InputStream

Inherited from Closeable

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped