Class Tson
java.lang.Object
net.thevpc.tson.Tson
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TsonOpbinOp(String op, TsonElementBase key, TsonElementBase value) static CharStreamCodeSupportcharStreamCodeSupportOf(String language) static TsonFormatBuilderformat()static Stringstatic TsonPrimitiveBuilderof()static TsonElementof(boolean value) static TsonElementof(boolean[] value) static TsonElementof(byte value) static TsonElementof(byte[] value) static TsonElementof(char value) static TsonElementof(double value) static TsonElementof(double[] value) static TsonElementof(float value) static TsonElementof(float[] value) static TsonElementof(int value) static TsonElementof(int[] value) static TsonElementof(long value) static TsonElementof(long[] value) static TsonElementof(short value) static TsonElementof(short[] value) static TsonElementof(InputStream value) static TsonElementstatic TsonElementstatic TsonElementstatic TsonElementstatic TsonElementstatic TsonElementstatic TsonElementstatic TsonElementstatic TsonElementstatic TsonElementstatic TsonElementstatic TsonElementstatic TsonElementstatic TsonElementstatic TsonElementstatic TsonElementstatic TsonElementstatic TsonElementstatic TsonElementof(BigDecimal value) static TsonElementof(BigInteger value) static TsonElementstatic TsonElementstatic TsonElementstatic TsonElementstatic TsonElementof(LocalDateTime value) static TsonElementstatic TsonElementstatic TsonElementstatic TsonElementstatic TsonElementstatic TsonAnnotationofAnnotation(String name, TsonElementBase... elements) static TsonAnnotationBuilderstatic TsonElementofAntiQuotedString(String value) static TsonArrayofArray(String name, TsonElementBase... elems) static TsonArrayofArray(String name, TsonElementBase[] params, TsonElementBase... elems) static TsonArrayofArray(TsonElementBase... elements) static TsonArrayBuilderstatic TsonArrayBuilderofArrayBuilder(String name) static TsonElementofBigComplex(BigDecimal real, BigDecimal imag) static TsonElementofBigComplex(BigDecimal real, BigDecimal imag, String unit) static TsonElementofBigDecimal(BigDecimal value) static TsonElementofBigDecimal(BigDecimal value, String unit) static TsonElementofBigInt(BigInteger value) static TsonElementofBigInt(BigInteger value, TsonNumberLayout layout) static TsonElementofBigInt(BigInteger value, TsonNumberLayout layout, String unit) static TsonBinaryStreamBuilderstatic TsonElementofBinStream(byte[] value) static TsonElementofBinStream(File value) static TsonElementofBinStream(InputStream value) static TsonElementofBinStream(Path value) static TsonElementofBoolean(boolean val) static TsonElementofByte(byte value) static TsonElementofByte(byte value, TsonNumberLayout layout) static TsonElementofByte(byte value, TsonNumberLayout layout, String unit) static TsonElementofChar(char value) static TsonElementofCharStream(char[] value) static TsonElementofCharStream(File value) static TsonElementofCharStream(Reader value) static TsonElementofCharStream(String value) static TsonElementofCharStream(String value, String language) static TsonElementofCharStream(Path value) static TsonElementofCharStream(Path value, String language) static TsonElementstatic TsonDocumentBuilderstatic TsonDocumentHeaderBuilderstatic TsonElementofDouble(double value) static TsonElementstatic TsonElementofDoubleComplex(double real, double imag) static TsonElementofDoubleComplex(double real, double imag, String unit) static TsonElementofDoubleQuotedString(String value) static TsonElementofElement(TsonElementBase value) static TsonElementBaseofElementBase(TsonElementBase value) static TsonElementofFalse()static TsonElementofFloat(float value) static TsonElementstatic TsonElementofFloatComplex(float real, float imag) static TsonElementofFloatComplex(float real, float imag, String unit) static TsonElementstatic TsonElementofInt(int value) static TsonElementofInt(int value, TsonNumberLayout layout) static TsonElementofInt(int value, TsonNumberLayout layout, String unit) static TsonElementofLineString(String value) static TsonElementofLocalDate(Date value) static TsonElementofLocalDate(LocalDate value) static TsonElementofLocalDatetime(Instant value) static TsonElementofLocalDatetime(LocalDateTime value) static TsonElementofLocalDatetime(Date value) static TsonElementofLocalTime(Time value) static TsonElementofLocalTime(LocalTime value) static TsonElementofLong(long value) static TsonElementofLong(long value, TsonNumberLayout layout) static TsonElementofLong(long value, TsonNumberLayout layout, String unit) static TsonMatrixBuilderstatic TsonMatrixBuilderofMatrixBuilder(String name) static TsonMatrixBuilderofMatrixBuilder(String name, TsonElementBase[] params) static TsonElementstatic TsonElementofNull()static TsonElementofNumber(Number value, TsonNumberLayout layout, String unit) static TsonObjectofObject(TsonElementBase... elems) static TsonObjectBuilderstatic TsonObjectBuilderofObjectBuilder(String name) static TsonObjectBuilderofObjectBuilder(String name, TsonElementBase... elems) static TsonObjectBuilderofObjectBuilder(String name, TsonElementBase[] params, TsonElementBase... elems) static TsonObjectBuilderofObjectBuilder(TsonElementBase... elems) static TsonElementBuilderofPair()static TsonPairofPair(String key, TsonElementBase value) static TsonPairofPair(TsonElementBase key, TsonElementBase value) static TsonPrimitiveBuilderstatic TsonElementstatic TsonElementstatic TsonElementofShort(short value) static TsonElementofShort(short value, TsonNumberLayout layout) static TsonElementofShort(short value, TsonNumberLayout layout, String unit) static TsonElementofSingleQuotedString(String value) static TsonElementofStopStream(char[] value, String stopWord) static TsonElementofStopStream(File value, String stopWord) static TsonElementofStopStream(Reader value, String stopWord) static TsonElementofStopStream(String value, String stopWord) static TsonElementofStopStream(Path value, String stopWord) static TsonElementstatic TsonElementofString(TsonElementType stringType, String value) static TsonElementofTripleAntiQuotedString(String value) static TsonElementofTripleDoubleQuotedString(String value) static TsonElementofTripleSingleQuotedString(String value) static TsonElementofTrue()static TsonUpletofUplet(String name, TsonElementBase... elems) static TsonUpletofUplet(TsonElementBase... elements) static TsonUpletBuilderstatic TsonElementparseAlias(String image) static TsonElementstatic TsonCommentparseComments(String image) static TsonElementparseInstant(String image) static TsonElementparseLocalDate(String image) static TsonElementparseLocalDateTime(String image) static TsonElementparseLocalTime(String image) static TsonElementparseNumber(String image) static TsonElementparseRegex(String image) static TsonElementparseString(String image) static TsonProcessorstatic TsonReaderreader()static TsonReaderreader(TsonSerializer serializer) static TsonSerializerstatic voidsetSerializer(TsonSerializer newSerializer) static TsonWriterwriter()
-
Field Details
-
COMPACT_FORMAT
-
DEFAULT_FORMAT
-
-
Constructor Details
-
Tson
public Tson()
-
-
Method Details
-
reader
-
reader
-
writer
-
setSerializer
-
serializer
-
getVersion
-
ofTrue
-
ofFalse
-
ofNull
-
ofBoolean
-
ofString
-
ofString
-
ofDoubleQuotedString
-
ofSingleQuotedString
-
ofAntiQuotedString
-
ofTripleDoubleQuotedString
-
ofTripleSingleQuotedString
-
ofTripleAntiQuotedString
-
ofLineString
-
ofElement
-
ofElementBase
-
ofInstant
-
ofLocalDatetime
-
ofLocalDatetime
-
ofLocalDatetime
-
ofLocalDate
-
ofLocalTime
-
ofLocalTime
-
ofLocalDate
-
ofRegex
-
ofRegex
-
ofPrimitiveBuilder
-
ofChar
-
ofNumber
-
ofInt
-
ofInt
-
ofInt
-
ofLong
-
ofLong
-
ofLong
-
ofByte
-
ofByte
-
ofByte
-
ofShort
-
ofShort
-
ofShort
-
ofFloat
-
ofFloat
-
ofBigInt
-
ofBigInt
-
ofBigInt
-
ofBigDecimal
-
ofBigDecimal
-
ofBigComplex
-
ofBigComplex
-
ofFloatComplex
-
ofFloatComplex
-
ofDoubleComplex
-
ofDoubleComplex
-
ofDouble
-
ofDouble
-
ofName
-
ofAlias
-
ofPair
-
binOp
-
ofPair
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
ofBinStream
-
ofBinStream
-
ofBinStream
-
ofBinStream
-
ofBinStream
-
ofCharStream
-
ofCharStream
-
ofCharStream
-
ofCharStream
-
ofCharStream
-
ofCharStream
-
ofCharStream
-
ofStopStream
-
ofStopStream
-
ofStopStream
-
ofStopStream
-
ofStopStream
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
ofArray
-
ofArrayBuilder
-
ofArrayBuilder
-
ofArray
-
ofArray
-
ofMatrixBuilder
-
ofMatrixBuilder
-
ofMatrixBuilder
-
ofPair
-
ofObjectBuilder
-
ofObjectBuilder
-
ofObject
-
ofObjectBuilder
-
ofObjectBuilder
public static TsonObjectBuilder ofObjectBuilder(String name, TsonElementBase[] params, TsonElementBase... elems) -
ofObjectBuilder
-
ofUpletBuilder
-
ofUplet
-
ofUplet
-
ofAnnotationBuilder
-
ofAnnotation
-
format
-
ofDocument
-
ofDocumentHeader
-
processor
-
of
-
of
-
parseLocalDateTime
-
parseInstant
-
parseNumber
-
parseChar
-
parseString
-
parseAlias
-
parseLocalDate
-
parseLocalTime
-
parseRegex
-
parseComments
-
charStreamCodeSupportOf
-
ofCustom
-