Package org.xipki.util.cbor
Class ByteArrayCborDecoder
- java.lang.Object
-
- org.xipki.util.cbor.CborDecoder
-
- org.xipki.util.cbor.ByteArrayCborDecoder
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class ByteArrayCborDecoder extends CborDecoder
-
-
Field Summary
-
Fields inherited from class org.xipki.util.cbor.CborDecoder
m_is
-
-
Constructor Summary
Constructors Constructor Description ByteArrayCborDecoder(byte[] bytes)Creates a newByteArrayCborDecoderinstance.ByteArrayCborDecoder(byte[] bytes, int offset)Creates a newByteArrayCborDecoderinstance.ByteArrayCborDecoder(byte[] bytes, int offset, int len)Creates a newByteArrayCborDecoderinstance.
-
Method Summary
-
Methods inherited from class org.xipki.util.cbor.CborDecoder
close, expectIntegerType, isNull, peekType, read1Byte, readArrayLength, readBigInt, readBigInts, readBoolean, readBooleanObj, readBreak, readByteString, readByteStringLength, readByteStrings, readDouble, readFloat, readHalfPrecisionFloat, readInstant, readInt, readInt16, readInt32, readInt64, readInt8, readIntList, readIntObj, readInts, readLong, readLongList, readLongObj, readLongs, readMajorType, readMajorTypeExact, readMajorTypeWithSize, readMapLength, readNull, readNullOrArrayLength, readNullOrArrayLength, readNullOrArrayLength, readNullOrMapLength, readSimpleValue, readSmallInt, readTag, readTagObj, readTextString, readTextStringLength, readTextStrings, readUInt, readUInt16, readUInt32, readUInt64, readUInt8, readUIntExact, readUndefined
-
-
-
-
Constructor Detail
-
ByteArrayCborDecoder
public ByteArrayCborDecoder(byte[] bytes)
Creates a newByteArrayCborDecoderinstance.- Parameters:
bytes- the encoded cbor message.
-
ByteArrayCborDecoder
public ByteArrayCborDecoder(byte[] bytes, int offset)Creates a newByteArrayCborDecoderinstance.- Parameters:
bytes- the encoded cbor message.offset- offset of bytes.
-
ByteArrayCborDecoder
public ByteArrayCborDecoder(byte[] bytes, int offset, int len)Creates a newByteArrayCborDecoderinstance.- Parameters:
bytes- the encoded cbor message.offset- offset of bytes for the cbor message.len- length of the bytes for the cbor message.
-
-