Package com.google.protobuf
Class CodedInputStream.StreamDecoder.SkippedDataSink
java.lang.Object
com.google.protobuf.CodedInputStream.StreamDecoder.SkippedDataSink
- All Implemented Interfaces:
CodedInputStream.StreamDecoder.RefillCallback
- Enclosing class:
CodedInputStream.StreamDecoder
private class CodedInputStream.StreamDecoder.SkippedDataSink
extends Object
implements CodedInputStream.StreamDecoder.RefillCallback
Collects the bytes skipped and returns the data in a ByteBuffer.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) ByteBuffer
Gets skipped data in a ByteBuffer.void
onRefill()
-
Field Details
-
lastPos
private int lastPos -
byteArrayStream
-
-
Constructor Details
-
SkippedDataSink
private SkippedDataSink()
-
-
Method Details
-
onRefill
public void onRefill()- Specified by:
onRefill
in interfaceCodedInputStream.StreamDecoder.RefillCallback
-
getSkippedData
ByteBuffer getSkippedData()Gets skipped data in a ByteBuffer. This method should only be called once.
-