public class ByteAccumulator extends Object
| Modifier and Type | Field and Description | 
|---|---|
| protected com.fasterxml.jackson.dataformat.protobuf.ByteAccumulator.Segment | _firstSegment | 
| protected com.fasterxml.jackson.dataformat.protobuf.ByteAccumulator.Segment | _lastSegment | 
| protected ByteAccumulator | _parent | 
| protected byte[] | _prefixBufferCaller-provided buffer in which optional type prefix,
 and mandatory length indicator may be added. | 
| protected int | _prefixOffsetOffset within  _prefixBufferwhere there is room
 for prefix. | 
| protected int | _segmentBytes | 
| protected int | _typedTag | 
| Constructor and Description | 
|---|
| ByteAccumulator(ByteAccumulator p,
               byte[] prefixBuffer,
               int prefixOffset) | 
| ByteAccumulator(ByteAccumulator p,
               int typedTag,
               byte[] prefixBuffer,
               int prefixOffset) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | append(byte[] buf,
      int offset,
      int len) | 
| ByteAccumulator | finish(OutputStream out) | 
| ByteAccumulator | finish(OutputStream out,
      byte[] input,
      int offset,
      int len) | 
protected final ByteAccumulator _parent
protected final byte[] _prefixBuffer
protected final int _prefixOffset
_prefixBuffer where there is room
 for prefix.protected final int _typedTag
protected com.fasterxml.jackson.dataformat.protobuf.ByteAccumulator.Segment _firstSegment
protected com.fasterxml.jackson.dataformat.protobuf.ByteAccumulator.Segment _lastSegment
protected int _segmentBytes
public ByteAccumulator(ByteAccumulator p, int typedTag, byte[] prefixBuffer, int prefixOffset)
public ByteAccumulator(ByteAccumulator p, byte[] prefixBuffer, int prefixOffset)
public void append(byte[] buf,
          int offset,
          int len)
public ByteAccumulator finish(OutputStream out, byte[] input, int offset, int len) throws IOException
IOExceptionpublic ByteAccumulator finish(OutputStream out) throws IOException
IOExceptionCopyright © 2016 FasterXML. All rights reserved.