Package org.pkl.core
Class PklBinaryDecoder
java.lang.Object
org.pkl.core.util.pklbinary.AbstractPklBinaryDecoder
org.pkl.core.PklBinaryDecoder
A decoder/parser for
pkl-binary.
For how pkl-binary turns Java, see Value.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.pkl.core.util.pklbinary.AbstractPklBinaryDecoder
AbstractPklBinaryDecoder.CollectionDecodeIterator, AbstractPklBinaryDecoder.DecodedObjectMember, AbstractPklBinaryDecoder.DecodeException, AbstractPklBinaryDecoder.DecodeIterator<T>, AbstractPklBinaryDecoder.MapDecodeIterator, AbstractPklBinaryDecoder.ObjectDecodeIterator -
Field Summary
Fields inherited from class org.pkl.core.util.pklbinary.AbstractPklBinaryDecoder
currPath -
Method Summary
Modifier and TypeMethodDescriptionstatic Objectdecode(byte[] bytes) Decode a value from the supplied byte array.static Objectdecode(InputStream inputStream) Decode a value from the suppliedInputStream.protected ObjectdoDecodeBytes(byte[] bytes) protected ObjectdoDecodeClass(String qualifiedName, URI moduleUri) protected ObjectdoDecodeDataSize(double value, DataSizeUnit unit) protected ObjectdoDecodeDuration(double value, DurationUnit unit) protected ObjectdoDecodeIntSeq(long start, long end, long step) protected Objectprotected Objectprotected Objectprotected Objectprotected Objectprotected ObjectdoDecodeObject(String className, URI moduleUri, AbstractPklBinaryDecoder.DecodeIterator<AbstractPklBinaryDecoder.DecodedObjectMember> iter) protected ObjectdoDecodePair(Object first, Object second) protected ObjectdoDecodeRegex(Pattern pattern) protected Objectprotected ObjectdoDecodeTypeAlias(String qualifiedName, URI moduleUri) protected RuntimeExceptionprotected RuntimeExceptiondoIOFail(IOException cause) Methods inherited from class org.pkl.core.util.pklbinary.AbstractPklBinaryDecoder
decode, doDecodeFunction
-
Method Details
-
decode
Decode a value from the supplied byte array. -
decode
Decode a value from the suppliedInputStream. -
doFail
- Specified by:
doFailin classAbstractPklBinaryDecoder
-
doIOFail
- Specified by:
doIOFailin classAbstractPklBinaryDecoder
-
doDecodeNull
- Specified by:
doDecodeNullin classAbstractPklBinaryDecoder
-
doDecodeDuration
- Specified by:
doDecodeDurationin classAbstractPklBinaryDecoder
-
doDecodeObject
protected Object doDecodeObject(String className, URI moduleUri, AbstractPklBinaryDecoder.DecodeIterator<AbstractPklBinaryDecoder.DecodedObjectMember> iter) - Specified by:
doDecodeObjectin classAbstractPklBinaryDecoder
-
doDecodeMap
- Specified by:
doDecodeMapin classAbstractPklBinaryDecoder
-
doDecodeMapping
- Specified by:
doDecodeMappingin classAbstractPklBinaryDecoder
-
doDecodeList
- Specified by:
doDecodeListin classAbstractPklBinaryDecoder
-
doDecodeListing
- Specified by:
doDecodeListingin classAbstractPklBinaryDecoder
-
doDecodeSet
- Specified by:
doDecodeSetin classAbstractPklBinaryDecoder
-
doDecodeDataSize
- Specified by:
doDecodeDataSizein classAbstractPklBinaryDecoder
-
doDecodePair
- Specified by:
doDecodePairin classAbstractPklBinaryDecoder
-
doDecodeIntSeq
- Specified by:
doDecodeIntSeqin classAbstractPklBinaryDecoder
-
doDecodeRegex
- Specified by:
doDecodeRegexin classAbstractPklBinaryDecoder
-
doDecodeClass
- Specified by:
doDecodeClassin classAbstractPklBinaryDecoder
-
doDecodeTypeAlias
- Specified by:
doDecodeTypeAliasin classAbstractPklBinaryDecoder
-
doDecodeBytes
- Specified by:
doDecodeBytesin classAbstractPklBinaryDecoder
-