Packages

trait SliceableByteChannel extends SeekableByteChannel

IO abstraction used by this library. This extends the SeekableByteChannel with the ability to return a view of a slice of the channel. Additionally, this trait offers some convenience methods for reading byte arrays and other types.

Linear Supertypes
SeekableByteChannel, ByteChannel, WritableByteChannel, ReadableByteChannel, Channel, Closeable, AutoCloseable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SliceableByteChannel
  2. SeekableByteChannel
  3. ByteChannel
  4. WritableByteChannel
  5. ReadableByteChannel
  6. Channel
  7. Closeable
  8. AutoCloseable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def close(): Unit
    Definition Classes
    Channel → Closeable → AutoCloseable
    Annotations
    @throws(classOf[java.io.IOException])
  2. abstract def isOpen(): Boolean
    Definition Classes
    Channel
  3. abstract def position(arg0: Long): SeekableByteChannel
    Definition Classes
    SeekableByteChannel
    Annotations
    @throws(classOf[java.io.IOException])
  4. abstract def position(): Long
    Definition Classes
    SeekableByteChannel
    Annotations
    @throws(classOf[java.io.IOException])
  5. abstract def read(arg0: ByteBuffer): Int
    Definition Classes
    SeekableByteChannel → ReadableByteChannel
    Annotations
    @throws(classOf[java.io.IOException])
  6. abstract def size(): Long
    Definition Classes
    SeekableByteChannel
    Annotations
    @throws(classOf[java.io.IOException])
  7. abstract def slice(from: Long, to: Long): SliceableByteChannel

    Return a view of this channel that is delimited by the given offsets.

    Return a view of this channel that is delimited by the given offsets.

    from

    the offset of the first byte of the slice (inclusive)

    to

    the offset of the first byte after the slice (exclusive)

    returns

    a view on the current channel

  8. abstract def write(arg0: ByteBuffer): Int
    Definition Classes
    SeekableByteChannel → WritableByteChannel
    Annotations
    @throws(classOf[java.io.IOException])

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. def readBytes(offset: Long, length: Int): Array[Byte]

    Read a block of bytes from the channel.

    Read a block of bytes from the channel.

    Note

    This method copies the bytes it reads. In order to avoid a copy you can use #slice.

  16. def readBytesFromEnd(offsetToEnd: Long, length: Int): Array[Byte]

    Read a block of bytes from the end of the channel.

    Read a block of bytes from the end of the channel.

    offsetToEnd

    the number of bytes between the end of the block bytes and the end of the channel

    Note

    This method copies the bytes it reads. In order to avoid a copy you can use #slice.

  17. def readIntFromEnd(offsetToEnd: Long): Int

    Read an integer from the end of the channel (big-endian byte order).

    Read an integer from the end of the channel (big-endian byte order).

    offsetToEnd

    the number of bytes between the end of the integer bytes and the end of the channel

  18. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  19. def toString(): String
    Definition Classes
    AnyRef → Any
  20. def truncate(size: Long): SeekableByteChannel

    Not supported by SliceableByteChannel.

    Not supported by SliceableByteChannel.

    Definition Classes
    SliceableByteChannel → SeekableByteChannel
  21. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from SeekableByteChannel

Inherited from ByteChannel

Inherited from WritableByteChannel

Inherited from ReadableByteChannel

Inherited from Channel

Inherited from Closeable

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped