Trait/Object

org.hammerlab.channel

ByteChannel

Related Docs: object ByteChannel | package channel

Permalink

trait ByteChannel extends InputStream with ReadableByteChannel

Readable, "skippable" common interface over InputStreams, Iterator[Byte]s, and channels.ReadableByteChannels.

When wrapping channels.SeekableByteChannels, exposes SeekableByteChannel.seek as well.

Linear Supertypes
ReadableByteChannel, Channel, InputStream, Closeable, AutoCloseable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ByteChannel
  2. ReadableByteChannel
  3. Channel
  4. InputStream
  5. Closeable
  6. AutoCloseable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def _read(dst: ByteBuffer): Int

    Permalink
    Attributes
    protected
  2. abstract def _read(b: Array[Byte], off: Int, len: Int): Int

    Permalink
    Attributes
    protected
  3. abstract def _read(): Int

    Permalink
    Attributes
    protected
  4. abstract def _skip(n: Int): Unit

    Permalink
    Attributes
    protected

Concrete 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. def _close(): Unit

    Permalink
    Attributes
    protected
  5. var _position: Long

    Permalink
    Attributes
    protected
  6. final def asInstanceOf[T0]: T0

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

    Permalink
    Definition Classes
    InputStream
    Annotations
    @throws( classOf[java.io.IOException] )
  8. lazy val b4: ByteBuffer

    Permalink
  9. def clone(): AnyRef

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

    Permalink
    Definition Classes
    ByteChannel → Channel → InputStream → Closeable → AutoCloseable
  11. final def eq(arg0: AnyRef): Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. def getInt: Int

    Permalink
  16. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  18. def isOpen(): Boolean

    Permalink
    Definition Classes
    ByteChannel → Channel
  19. def mark(arg0: Int): Unit

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

    Permalink
    Definition Classes
    InputStream
  21. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  24. def order(order: ByteOrder): Unit

    Permalink
  25. def position(): Long

    Permalink
  26. final def read(dst: ByteBuffer): Int

    Permalink
    Definition Classes
    ByteChannel → ReadableByteChannel
  27. final def read(b: Array[Byte], off: Int, len: Int): Int

    Permalink
    Definition Classes
    ByteChannel → InputStream
  28. final def read(b: Array[Byte]): Int

    Permalink
    Definition Classes
    ByteChannel → InputStream
  29. final def read(): Int

    Permalink
    Definition Classes
    ByteChannel → InputStream
  30. def readFully(bytes: Array[Byte], offset: Int, numToRead: Int): Unit

    Permalink
  31. def readFully(bytes: Array[Byte]): Unit

    Permalink
  32. def readFully(dst: ByteBuffer): Unit

    Permalink

    Read as many bytes into dst as it has remaining, throw an IOException if too few bytes exist or are read.

  33. def readString(length: Int, includesNull: Boolean = true): String

    Permalink

    Convenience method for reading a string of known length

  34. def reset(): Unit

    Permalink
    Definition Classes
    InputStream
    Annotations
    @throws( classOf[java.io.IOException] )
  35. final def skip(n: Int): Unit

    Permalink

    Skip n bytes, throw IOException if unable to

  36. def skip(arg0: Long): Long

    Permalink
    Definition Classes
    InputStream
    Annotations
    @throws( classOf[java.io.IOException] )
  37. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

Inherited from ReadableByteChannel

Inherited from Channel

Inherited from InputStream

Inherited from Closeable

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped