public abstract class AbstractEncoder<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected CborEncoder |
encoder |
| Constructor and Description |
|---|
AbstractEncoder(CborEncoder encoder,
OutputStream outputStream) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
encode(T dataItem) |
protected void |
encodeTypeAndLength(MajorType majorType,
BigInteger length) |
protected void |
encodeTypeAndLength(MajorType majorType,
long length) |
protected void |
encodeTypeChunked(MajorType majorType) |
protected void |
write(byte[] bytes) |
protected void |
write(int b) |
protected final CborEncoder encoder
public AbstractEncoder(CborEncoder encoder, OutputStream outputStream)
public abstract void encode(T dataItem) throws CborException
CborExceptionprotected void encodeTypeChunked(MajorType majorType) throws CborException
CborExceptionprotected void encodeTypeAndLength(MajorType majorType, long length) throws CborException
CborExceptionprotected void encodeTypeAndLength(MajorType majorType, BigInteger length) throws CborException
CborExceptionprotected void write(int b)
throws CborException
CborExceptionprotected void write(byte[] bytes)
throws CborException
CborExceptionCopyright © 2014. All Rights Reserved.