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 java.lang.Object implements CodedInputStream.StreamDecoder.RefillCallback
Collects the bytes skipped and returns the data in a ByteBuffer.
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.ByteArrayOutputStream
byteArrayStream
private int
lastPos
-
Constructor Summary
Constructors Modifier Constructor Description private
SkippedDataSink()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) java.nio.ByteBuffer
getSkippedData()
Gets skipped data in a ByteBuffer.void
onRefill()
-
-
-
Method Detail
-
onRefill
public void onRefill()
- Specified by:
onRefill
in interfaceCodedInputStream.StreamDecoder.RefillCallback
-
getSkippedData
java.nio.ByteBuffer getSkippedData()
Gets skipped data in a ByteBuffer. This method should only be called once.
-
-