c

com.twitter.io

ProxyByteReader

abstract class ProxyByteReader extends ByteReader

A proxy ByteReader that forwards all calls to another ByteReader. This is useful if you want to wrap-but-modify an existing ByteReader.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ProxyByteReader
  2. ByteReader
  3. AutoCloseable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ProxyByteReader(underlying: ByteReader)

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[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. def close(): Unit
    Definition Classes
    ProxyByteReader → AutoCloseable
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. def process(processor: Processor): Int

    Process the underlying buffer 1-byte at a time using the given Buf.Processor, starting at index 0 of the underlying buffer until index length of the underlying buffer.

    Process the underlying buffer 1-byte at a time using the given Buf.Processor, starting at index 0 of the underlying buffer until index length of the underlying buffer. Processing will halt if the processor returns false or after processing the final byte.

    returns

    -1 if the processor processed all bytes or the last processed index if the processor returns false.

    Definition Classes
    ProxyByteReaderByteReader
    Note

    this does not advance the byte cursor.

  17. def process(from: Int, until: Int, processor: Processor): Int

    Process the underlying buffer 1-byte at a time using the given Buf.Processor, starting at index from of the underlying buffer until index until of the underlying buffer.

    Process the underlying buffer 1-byte at a time using the given Buf.Processor, starting at index from of the underlying buffer until index until of the underlying buffer. Processing will halt if the processor returns false or after processing the final byte.

    from

    the starting index, inclusive. Must be non-negative.

    until

    the ending index, exclusive. Must be non-negative.

    returns

    -1 if the processor processed all bytes or the last processed index if the processor returns false. Will return -1 if from is greater than or equal to until or length of the underlying buffer. Will return -1 if until is greater than or equal to length of the underlying buffer.

    Definition Classes
    ProxyByteReaderByteReader
    Note

    this does not advance the byte cursor.

  18. def readAll(): Buf

    Like read, but extracts the remainder of bytes from cursor to the length.

    Like read, but extracts the remainder of bytes from cursor to the length. Note, this advances the cursor to the end of the buf.

    Definition Classes
    ProxyByteReaderByteReader
  19. def readByte(): Byte

    Extract 8 bits and interpret as a signed integer, advancing the byte cursor by 1.

    Extract 8 bits and interpret as a signed integer, advancing the byte cursor by 1.

    Definition Classes
    ProxyByteReaderByteReader
  20. def readBytes(n: Int): Buf

    Returns a new buffer representing a slice of this buffer, delimited by the indices [cursor, remaining).

    Returns a new buffer representing a slice of this buffer, delimited by the indices [cursor, remaining). Out of bounds indices are truncated. Negative indices are not accepted.

    Definition Classes
    ProxyByteReaderByteReader
  21. def readDoubleBE(): Double

    Extract 64 bits and interpret as a big endian floating point, advancing the byte cursor by 4.

    Extract 64 bits and interpret as a big endian floating point, advancing the byte cursor by 4.

    Definition Classes
    ProxyByteReaderByteReader
  22. def readDoubleLE(): Double

    Extract 64 bits and interpret as a little endian floating point, advancing the byte cursor by 4.

    Extract 64 bits and interpret as a little endian floating point, advancing the byte cursor by 4.

    Definition Classes
    ProxyByteReaderByteReader
  23. def readFloatBE(): Float

    Extract 32 bits and interpret as a big endian floating point, advancing the byte cursor by 4.

    Extract 32 bits and interpret as a big endian floating point, advancing the byte cursor by 4.

    Definition Classes
    ProxyByteReaderByteReader
  24. def readFloatLE(): Float

    Extract 32 bits and interpret as a little endian floating point, advancing the byte cursor by 4.

    Extract 32 bits and interpret as a little endian floating point, advancing the byte cursor by 4.

    Definition Classes
    ProxyByteReaderByteReader
  25. def readIntBE(): Int

    Extract 32 bits and interpret as a big endian integer, advancing the byte cursor by 4.

    Extract 32 bits and interpret as a big endian integer, advancing the byte cursor by 4.

    Definition Classes
    ProxyByteReaderByteReader
  26. def readIntLE(): Int

    Extract 32 bits and interpret as a little endian int, advancing the byte cursor by 4.

    Extract 32 bits and interpret as a little endian int, advancing the byte cursor by 4.

    Definition Classes
    ProxyByteReaderByteReader
  27. def readLongBE(): Long

    Extract 64 bits and interpret as a big endian integer, advancing the byte cursor by 8.

    Extract 64 bits and interpret as a big endian integer, advancing the byte cursor by 8.

    Definition Classes
    ProxyByteReaderByteReader
  28. def readLongLE(): Long

    Extract 64 bits and interpret as a little endian integer, advancing the byte cursor by 8.

    Extract 64 bits and interpret as a little endian integer, advancing the byte cursor by 8.

    Definition Classes
    ProxyByteReaderByteReader
  29. def readMediumBE(): Int

    Extract 24 bits and interpret as a big endian integer, advancing the byte cursor by 3.

    Extract 24 bits and interpret as a big endian integer, advancing the byte cursor by 3.

    Definition Classes
    ProxyByteReaderByteReader
  30. def readMediumLE(): Int

    Extract 24 bits and interpret as a little endian integer, advancing the byte cursor by 3.

    Extract 24 bits and interpret as a little endian integer, advancing the byte cursor by 3.

    Definition Classes
    ProxyByteReaderByteReader
  31. def readShortBE(): Short

    Extract 16 bits and interpret as a big endian integer, advancing the byte cursor by 2.

    Extract 16 bits and interpret as a big endian integer, advancing the byte cursor by 2.

    Definition Classes
    ProxyByteReaderByteReader
  32. def readShortLE(): Short

    Extract 16 bits and interpret as a little endian integer, advancing the byte cursor by 2.

    Extract 16 bits and interpret as a little endian integer, advancing the byte cursor by 2.

    Definition Classes
    ProxyByteReaderByteReader
  33. def readString(bytes: Int, charset: Charset): String

    Extract exactly the specified number of bytes into a String using the specified Charset, advancing the byte cursor by bytes.

    Extract exactly the specified number of bytes into a String using the specified Charset, advancing the byte cursor by bytes.

    Definition Classes
    ProxyByteReaderByteReader
    Exceptions thrown

    ByteReader.UnderflowException if there are < bytes bytes available

  34. def readUnsignedByte(): Short

    Extract 8 bits and interpret as an unsigned integer, advancing the byte cursor by 1.

    Extract 8 bits and interpret as an unsigned integer, advancing the byte cursor by 1.

    Definition Classes
    ProxyByteReaderByteReader
  35. def readUnsignedIntBE(): Long

    Extract 32 bits and interpret as a big endian unsigned integer, advancing the byte cursor by 4.

    Extract 32 bits and interpret as a big endian unsigned integer, advancing the byte cursor by 4.

    Definition Classes
    ProxyByteReaderByteReader
  36. def readUnsignedIntLE(): Long

    Extract 32 bits and interpret as a little endian unsigned integer, advancing the byte cursor by 4.

    Extract 32 bits and interpret as a little endian unsigned integer, advancing the byte cursor by 4.

    Definition Classes
    ProxyByteReaderByteReader
  37. def readUnsignedLongBE(): BigInt

    Extract 64 bits and interpret as a big endian unsigned integer, advancing the byte cursor by 8.

    Extract 64 bits and interpret as a big endian unsigned integer, advancing the byte cursor by 8.

    Definition Classes
    ProxyByteReaderByteReader
  38. def readUnsignedLongLE(): BigInt

    Extract 64 bits and interpret as a little endian unsigned integer, advancing the byte cursor by 8.

    Extract 64 bits and interpret as a little endian unsigned integer, advancing the byte cursor by 8.

    Definition Classes
    ProxyByteReaderByteReader
  39. def readUnsignedMediumBE(): Int

    Extract 24 bits and interpret as a big endian unsigned integer, advancing the byte cursor by 3.

    Extract 24 bits and interpret as a big endian unsigned integer, advancing the byte cursor by 3.

    Definition Classes
    ProxyByteReaderByteReader
  40. def readUnsignedMediumLE(): Int

    Extract 24 bits and interpret as a little endian unsigned integer, advancing the byte cursor by 3.

    Extract 24 bits and interpret as a little endian unsigned integer, advancing the byte cursor by 3.

    Definition Classes
    ProxyByteReaderByteReader
  41. def readUnsignedShortBE(): Int

    Extract 16 bits and interpret as a big endian unsigned integer, advancing the byte cursor by 2.

    Extract 16 bits and interpret as a big endian unsigned integer, advancing the byte cursor by 2.

    Definition Classes
    ProxyByteReaderByteReader
  42. def readUnsignedShortLE(): Int

    Extract 16 bits and interpret as a little endian unsigned integer, advancing the byte cursor by 2.

    Extract 16 bits and interpret as a little endian unsigned integer, advancing the byte cursor by 2.

    Definition Classes
    ProxyByteReaderByteReader
  43. def remaining: Int

    The remainder of bytes that the reader is capable of reading.

    The remainder of bytes that the reader is capable of reading.

    Definition Classes
    ProxyByteReaderByteReader
  44. def remainingUntil(byte: Byte): Int

    The remainder of bytes until the first occurrence of byte (exclusive).

    The remainder of bytes until the first occurrence of byte (exclusive). Returns -1 when byte is not found on the underlying resource.

    Definition Classes
    ProxyByteReaderByteReader
    Note

    All util and finagle Buf implementations will not copy onto the heap, but for other implementations, it may trigger a copy.

  45. def skip(n: Int): Unit

    Skip over the next n bytes.

    Skip over the next n bytes.

    Definition Classes
    ProxyByteReaderByteReader
    Exceptions thrown

    ByteReader.UnderflowException if there are < n bytes available

  46. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  47. def toString(): String
    Definition Classes
    AnyRef → Any
  48. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  49. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  50. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from ByteReader

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped