Class/Object

com.google.protobuf

CodedInputStream

Related Docs: object CodedInputStream | package protobuf

Permalink

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
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CodedInputStream(is: InputStream)

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

    Permalink

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. final def asInstanceOf[T0]: T0

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

    Permalink
  6. def clone(): AnyRef

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

    Permalink
  8. final def eq(arg0: AnyRef): Boolean

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

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

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

    Permalink
  12. final def getClass(): Class[_]

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

    Permalink
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. def isAtEnd: Boolean

    Permalink

    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).

  16. final def isInstanceOf[T0]: Boolean

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

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

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

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

    Permalink

    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}.

  21. def pushLimit(byteLimit0: Int): Int

    Permalink

    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.

  22. def readBool(): Boolean

    Permalink

    Read a bool field value from the stream.

    Read a bool field value from the stream.

  23. def readByteArray(): Array[Byte]

    Permalink
  24. def readByteBuffer(): ByteBuffer

    Permalink
  25. def readBytes(): ByteString

    Permalink

    Read a bytes field value from the stream.

    Read a bytes field value from the stream.

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

    Permalink

    Read a double field value from the stream.

    Read a double field value from the stream.

  27. def readEnum(): Int

    Permalink

    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.

  28. def readFixed32(): Int

    Permalink

    Read a fixed32 field value from the stream.

    Read a fixed32 field value from the stream.

  29. def readFixed64(): Long

    Permalink

    Read a fixed64 field value from the stream.

    Read a fixed64 field value from the stream.

  30. def readFloat(): Float

    Permalink

    Read a float field value from the stream.

    Read a float field value from the stream.

  31. def readInt32(): Int

    Permalink

    Read an int32 field value from the stream.

    Read an int32 field value from the stream.

  32. def readInt64(): Long

    Permalink

    Read an int64 field value from the stream.

    Read an int64 field value from the stream.

  33. def readRawByte(): Byte

    Permalink

    Read one byte from the input.

    Read one byte from the input.

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

    Permalink

    Read a fixed size of bytes from the input.

    Read a fixed size of bytes from the input.

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

    Permalink

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

  36. def readRawLittleEndian64(): Long

    Permalink

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

  37. def readRawVarint32(): Int

    Permalink

    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( ... )
  38. def readRawVarint64(): Long

    Permalink

    Read a raw Varint from the stream.

    Read a raw Varint from the stream.

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

    Permalink

    Read an sfixed32 field value from the stream.

    Read an sfixed32 field value from the stream.

  40. def readSFixed64(): Long

    Permalink

    Read an sfixed64 field value from the stream.

    Read an sfixed64 field value from the stream.

  41. def readSInt32(): Int

    Permalink

    Read an sint32 field value from the stream.

    Read an sint32 field value from the stream.

  42. def readSInt64(): Long

    Permalink

    Read an sint64 field value from the stream.

    Read an sint64 field value from the stream.

  43. def readString(): String

    Permalink
  44. def readTag(): Int

    Permalink

    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( ... )
  45. def readUInt32(): Int

    Permalink

    Read a uint32 field value from the stream.

    Read a uint32 field value from the stream.

  46. def readUInt64(): Long

    Permalink

    Read a uint64 field value from the stream.

    Read a uint64 field value from the stream.

  47. def resetSizeCounter(): Unit

    Permalink
  48. def setSizeLimit(limit: Int): Int

    Permalink
  49. def skipField(tag: Int): Boolean

    Permalink

    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] )
  50. def skipMessage(): Unit

    Permalink

    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.

  51. def skipRawBytes(size: Int): Unit

    Permalink

    Reads and discards size bytes.

    Reads and discards size bytes.

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

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped