scales.utils.io

ReadableByteChannelWrapperBase

class ReadableByteChannelWrapperBase[T] extends DataChunker[T] with CloseOnNeed

Wraps a ReadableByteChannel to provide DataChunks, optionally closes the channel (defaults to closing).

This base implementation should only be used against already provided buffers, prefer using ReadableByteChannelWrapper directly instead.

Source
ReadableByteChannelWrapper.scala
Linear Supertypes
DataChunker[T], CloseOnNeed, IsClosed, AnyRef, Any
Known Subclasses
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ReadableByteChannelWrapperBase
  2. DataChunker
  3. CloseOnNeed
  4. IsClosed
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ReadableByteChannelWrapperBase(channel: ReadableByteChannel, buffer: ByteBuffer, closeChannel: Boolean = true, backingArray: Array[Byte] = ...)(implicit ev: DataChunkEvidence[T])

    Direct buffers also require a backing array to be specified.

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def ++(close2: CloseOnNeed): CloseOnNeed

    Definition Classes
    CloseOnNeed
  5. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  6. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. val backingArray: Array[Byte]

    Attributes
    protected
  9. val buffer: ByteBuffer

    Attributes
    protected
  10. val channel: ReadableByteChannel

  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. val closeChannel: Boolean

  13. def closeResource: Unit

    Close the underlying something, but only do it once.

    Close the underlying something, but only do it once.

    This allows closing of an xml input stream directly after the end doc, but without disturbing the normal model.

    Definition Classes
    CloseOnNeed
  14. def direct(): DataChunk

    Called when processing via Direct Buffers

    Called when processing via Direct Buffers

    Attributes
    protected
  15. def doClose: Unit

    Closes the channel when closeChannel is true - ensure to call from derived classes

    Closes the channel when closeChannel is true - ensure to call from derived classes

    Attributes
    protected
    Definition Classes
    ReadableByteChannelWrapperBaseCloseOnNeed
  16. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  18. implicit val ev: DataChunkEvidence[T]

  19. def finalize(): Unit

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

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

    Definition Classes
    AnyRef → Any
  22. def isClosed: Boolean

    Definition Classes
    CloseOnNeedIsClosed
  23. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  24. def jbytes(): DataChunk

    Called when processing array backed buffers

    Called when processing array backed buffers

    Attributes
    protected
  25. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  26. final def nextChunk: DataChunk

    Receives the next chunk from the underlying

    Receives the next chunk from the underlying

    Definition Classes
    ReadableByteChannelWrapperBaseDataChunker
  27. final def notify(): Unit

    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  30. def toString(): String

    Definition Classes
    AnyRef → Any
  31. def underlyingClosed: Boolean

    Is the underlying resource closed - if true the dataChunkEnumerator will return the Iteratee passed to it, stopping evaluation

    Is the underlying resource closed - if true the dataChunkEnumerator will return the Iteratee passed to it, stopping evaluation

    Definition Classes
    ReadableByteChannelWrapperBaseDataChunker
  32. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from DataChunker[T]

Inherited from CloseOnNeed

Inherited from IsClosed

Inherited from AnyRef

Inherited from Any

Ungrouped