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
CborException
protected void encodeTypeChunked(MajorType majorType) throws CborException
CborException
protected void encodeTypeAndLength(MajorType majorType, long length) throws CborException
CborException
protected void encodeTypeAndLength(MajorType majorType, BigInteger length) throws CborException
CborException
protected void write(int b) throws CborException
CborException
protected void write(byte[] bytes) throws CborException
CborException
Copyright © 2014. All Rights Reserved.