Package co.nstant.in.cbor.encoder
Class AbstractEncoder<T>
java.lang.Object
co.nstant.in.cbor.encoder.AbstractEncoder<T>
- Direct Known Subclasses:
ArrayEncoder,ByteStringEncoder,DoublePrecisionFloatEncoder,HalfPrecisionFloatEncoder,MapEncoder,NegativeIntegerEncoder,SinglePrecisionFloatEncoder,SpecialEncoder,TagEncoder,UnicodeStringEncoder,UnsignedIntegerEncoder
public abstract class AbstractEncoder<T> extends Object
-
Field Summary
Fields Modifier and Type Field Description protected CborEncoderencoder -
Constructor Summary
Constructors Constructor Description AbstractEncoder(CborEncoder encoder, OutputStream outputStream) -
Method Summary
Modifier and Type Method Description abstract voidencode(T dataItem)protected voidencodeTypeAndLength(MajorType majorType, long length)protected voidencodeTypeAndLength(MajorType majorType, BigInteger length)protected voidencodeTypeChunked(MajorType majorType)protected voidwrite(byte... bytes)protected voidwrite(int b)
-
Field Details
-
Constructor Details
-
Method Details
-
encode
- Throws:
CborException
-
encodeTypeChunked
- Throws:
CborException
-
encodeTypeAndLength
- Throws:
CborException
-
encodeTypeAndLength
- Throws:
CborException
-
write
- Throws:
CborException
-
write
- Throws:
CborException
-