com.google.protobuf

CodedInputStream

class CodedInputStream extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CodedInputStream
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CodedInputStream(is: InputStream)

  2. new CodedInputStream(buffer: Array[Byte], offset: Int, len: Int)

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. final def ==(arg0: AnyRef): Boolean

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

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

    Definition Classes
    Any
  7. def checkLastTagWas(value: Int): Unit

  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def enableAliasing(aliasing: Boolean): Unit

  10. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def getBytesUntilLimit: Int

  14. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  15. def getTotalBytesRead(): Int

  16. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  17. def isAtEnd: Boolean

    Returns true if the stream has reached the end of the input.

    Returns true if the stream has reached the end of the input. This is the case if either the end of the underlying input source has been reached or if the stream has reached a limit created using #pushLimit(int).

  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. final def notify(): Unit

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

    Definition Classes
    AnyRef
  22. def popLimit(oldLimit: Int): Unit

    Discards the current limit, returning to the previous limit.

    Discards the current limit, returning to the previous limit.

    oldLimit

    The old limit, as returned by { @code pushLimit}.

  23. def pushLimit(byteLimit0: Int): Int

    Sets currentLimit to (current position) + byteLimit.

    Sets currentLimit to (current position) + byteLimit. This is called when descending into a length-delimited embedded message.

    Note that pushLimit() does NOT affect how many bytes the CodedInputStream reads from an underlying InputStream when refreshing its buffer. If you need to prevent reading past a certain point in the underlying InputStream (e.g. because you expect it to contain more data after the end of the message which you need to handle differently) then you must place a wrapper around your InputStream which limits the amount of data that can be read from it.

    returns

    the old limit.

  24. def readBool(): Boolean

    Read a bool field value from the stream.

  25. def readByteArray(): Array[Byte]

  26. def readByteBuffer(): ByteBuffer

  27. def readBytes(): ByteString

    Read a bytes field value from the stream.

    Read a bytes field value from the stream.

    Annotations
    @throws( ... )
  28. def readDouble(): Double

    Read a double field value from the stream.

  29. def readEnum(): Int

    Read an enum field value from the stream.

    Read an enum field value from the stream. Caller is responsible for converting the numeric value to an actual enum.

  30. def readFixed32(): Int

    Read a fixed32 field value from the stream.

  31. def readFixed64(): Long

    Read a fixed64 field value from the stream.

  32. def readFloat(): Float

    Read a float field value from the stream.

  33. def readInt32(): Int

    Read an int32 field value from the stream.

  34. def readInt64(): Long

    Read an int64 field value from the stream.

  35. def readRawByte(): Byte

    Read one byte from the input.

    Read one byte from the input.

    Annotations
    @throws( ... )
  36. def readRawBytes(size: Int): Array[Byte]

    Read a fixed size of bytes from the input.

    Read a fixed size of bytes from the input.

    Annotations
    @throws( ... )
  37. def readRawLittleEndian32(): Int

    Read a 32-bit little-endian integer from the stream.

  38. def readRawLittleEndian64(): Long

    Read a 64-bit little-endian integer from the stream.

  39. def readRawVarint32(): Int

    Read a raw Varint from the stream.

    Read a raw Varint from the stream. If larger than 32 bits, discard the upper bits.

    Annotations
    @throws( ... )
  40. def readRawVarint64(): Long

    Read a raw Varint from the stream.

    Read a raw Varint from the stream.

    Annotations
    @throws( ... )
  41. def readSFixed32(): Int

    Read an sfixed32 field value from the stream.

  42. def readSFixed64(): Long

    Read an sfixed64 field value from the stream.

  43. def readSInt32(): Int

    Read an sint32 field value from the stream.

  44. def readSInt64(): Long

    Read an sint64 field value from the stream.

  45. def readString(): String

  46. def readStringRequireUtf8(): String

  47. def readTag(): Int

    Attempt to read a field tag, returning zero if we have reached EOF.

    Attempt to read a field tag, returning zero if we have reached EOF. Protocol message parsers use this to read tags, since a protocol message may legally end wherever a tag occurs, and zero is not a valid tag number.

    Annotations
    @throws( ... )
  48. def readUInt32(): Int

    Read a uint32 field value from the stream.

  49. def readUInt64(): Long

    Read a uint64 field value from the stream.

  50. def resetSizeCounter(): Unit

  51. def setSizeLimit(limit: Int): Int

  52. def skipField(tag: Int): Boolean

    Reads and discards a single field, given its tag value.

    Reads and discards a single field, given its tag value.

    returns

    { @code false} if the tag is an endgroup tag, in which case nothing is skipped. Otherwise, returns { @code true}.

    Annotations
    @throws( classOf[IOException] )
  53. def skipMessage(): Unit

    Reads and discards an entire message.

    Reads and discards an entire message. This will read either until EOF or until an endgroup tag, whichever comes first.

  54. def skipRawBytes(size: Int): Unit

    Reads and discards size bytes.

  55. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  56. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped