Uses of Interface
org.apache.juneau.marshall.stream.TokenWriter
Packages that use TokenWriter
Package
Description
CBOR (Concise Binary Object Representation) marshalling support per RFC 8949.
JCS (JSON Canonicalization Scheme) Marshalling Support.
JSON Marshalling Support.
JSON5L (JSON5 Lines) marshalling support.
JSONL (JSON Lines) marshalling support.
Marshallers
MessagePack Marshalling Support
Public low-level token-streaming API (pull parser + push generator) shared by every Juneau
format.
Next-generation REST client — transport-agnostic HTTP client built on Juneau's serialization stack.
REST Client API
-
Uses of TokenWriter in org.apache.juneau.marshall.cbor
Classes in org.apache.juneau.marshall.cbor that implement TokenWriterModifier and TypeClassDescriptionclassReference implementation of the publicTokenWritersurface for the CBOR format (RFC 8949).Methods in org.apache.juneau.marshall.cbor that return TokenWriterModifier and TypeMethodDescriptionCborTokenWriter.binary(byte[] value) CborTokenWriter.bool(boolean value) CborTokenWriter.endArray()CborTokenWriter.endObject()CborTokenWriter.nil()CborTokenWriter.number(double value) CborTokenWriter.number(long value) CborTokenWriter.number(BigDecimal value) CborTokenWriter.number(BigInteger value) CborTokenWriter.startArray()CborTokenWriter.startObject()CborSerializer.writeTokens(Object output) Convenience delegator that opens aCborTokenWriterover the output using default session arguments (mirrorsOutputStreamSerializer.write(Object)).CborSerializerSession.writeTokens(Object output) Opens a low-level push generator that emits CBOR (RFC 8949) one structural event at a time, bound to this live session. -
Uses of TokenWriter in org.apache.juneau.marshall.jcs
Methods in org.apache.juneau.marshall.jcs that return TokenWriterModifier and TypeMethodDescriptionJcsSerializer.writeTokens(Object output) Convenience delegator (default session args) for the raw-JSON token writer.JcsSerializerSession.writeTokens(Object output) Opens a low-level push generator that emits raw JSON (NOT canonical JCS) one structural event at a time, with theobject(Object)POJO bridge disabled (the walker would emit ordinary JSON, not canonical JCS). -
Uses of TokenWriter in org.apache.juneau.marshall.json
Classes in org.apache.juneau.marshall.json that implement TokenWriterModifier and TypeClassDescriptionclassReference implementation of the publicTokenWritersurface for the JSON format.Methods in org.apache.juneau.marshall.json that return TokenWriterModifier and TypeMethodDescriptionJsonTokenWriter.binary(byte[] value) JsonTokenWriter.bool(boolean value) JsonTokenWriter.endArray()JsonTokenWriter.endObject()JsonTokenWriter.nil()JsonTokenWriter.number(double value) JsonTokenWriter.number(long value) JsonTokenWriter.number(BigDecimal value) JsonTokenWriter.number(BigInteger value) JsonTokenWriter.startArray()JsonTokenWriter.startObject()JsonSchemaSerializer.writeTokens(Object output) Convenience delegator (default session args) for the raw-JSON token writer.JsonSchemaSerializerSession.writeTokens(Object output) Opens a low-level push generator that emits raw JSON (NOT schema) one structural event at a time, with theobject(Object)POJO bridge disabled (the walker would emit the bean's own JSON, not its JSON Schema).JsonSerializer.writeTokens(Object output) Convenience delegator that opens aJsonTokenWriterover the output using default session arguments (mirrorsSerializer.write(Object, Object)).JsonSerializerSession.writeTokens(Object output) Opens a low-level push generator that emits JSON one structural event at a time, bound to this session's live config. -
Uses of TokenWriter in org.apache.juneau.marshall.json5l
Methods in org.apache.juneau.marshall.json5l that return TokenWriter -
Uses of TokenWriter in org.apache.juneau.marshall.jsonl
Classes in org.apache.juneau.marshall.jsonl that implement TokenWriterModifier and TypeClassDescriptionclassReference implementation of the publicTokenWritersurface for the JSONL / NDJSON format.Methods in org.apache.juneau.marshall.jsonl that return TokenWriterModifier and TypeMethodDescriptionJsonlTokenWriter.binary(byte[] value) JsonlTokenWriter.bool(boolean value) JsonlTokenWriter.endArray()JsonlTokenWriter.endObject()JsonlTokenWriter.nil()JsonlTokenWriter.number(double value) JsonlTokenWriter.number(long value) JsonlTokenWriter.number(BigDecimal value) JsonlTokenWriter.number(BigInteger value) JsonlTokenWriter.startArray()JsonlTokenWriter.startObject()JsonlSerializerSession.writeTokens(Object output) Opens a low-level push generator that emits JSONL one structural event at a time, with a trailing newline after every top-level value, bound to this live session. -
Uses of TokenWriter in org.apache.juneau.marshall.marshaller
Methods in org.apache.juneau.marshall.marshaller that return TokenWriterModifier and TypeMethodDescriptionstatic TokenWriterOpens a low-levelTokenWritergenerator over the specified output using theBsonBase64.DEFAULTmarshaller.static TokenWriterOpens a low-levelTokenWritergenerator over the specified output using theBsonSpacedHex.DEFAULTmarshaller.static TokenWriterOpens a low-levelTokenWritergenerator over the specified output using theCbor.DEFAULTmarshaller.static TokenWriterOpens a low-levelTokenWritergenerator over the specified output using theCborBase64.DEFAULTmarshaller.static TokenWriterOpens a low-levelTokenWritergenerator over the specified output using theCborNative.DEFAULTmarshaller.static TokenWriterOpens a low-levelTokenWritergenerator over the specified output using theCborSpacedHex.DEFAULTmarshaller.static TokenWriterOpens a low-levelTokenWritergenerator over the specified output using theJcs.DEFAULTmarshaller.static TokenWriterOpens a low-levelTokenWritergenerator over the specified output using theJson.DEFAULTmarshaller.static TokenWriterOpens a low-levelTokenWritergenerator over the specified output using theJson5.DEFAULTmarshaller.static TokenWriterOpens a low-levelTokenWritergenerator over the specified output using theJson5l.DEFAULTmarshaller.static TokenWriterOpens a low-levelTokenWritergenerator over the specified output using theJson5R.DEFAULTmarshaller.static TokenWriterOpens a low-levelTokenWritergenerator over the specified output using theJsonl.DEFAULTmarshaller.static TokenWriterOpens a low-levelTokenWritergenerator over the specified output using theJsonR.DEFAULTmarshaller.static TokenWriterOpens a low-levelTokenWritergenerator over the specified output using theMsgPack.DEFAULTmarshaller.static TokenWriterOpens a low-levelTokenWritergenerator over the specified output using theMsgPackBase64.DEFAULTmarshaller.static TokenWriterOpens a low-levelTokenWritergenerator over the specified output using theMsgPackNative.DEFAULTmarshaller.static TokenWriterOpens a low-levelTokenWritergenerator over the specified output using theMsgPackSpacedHex.DEFAULTmarshaller.Marshaller.writeTokens(Object output) Opens a low-level push generator that emits structural events one at a time. -
Uses of TokenWriter in org.apache.juneau.marshall.msgpack
Classes in org.apache.juneau.marshall.msgpack that implement TokenWriterModifier and TypeClassDescriptionclassReference implementation of the publicTokenWritersurface for the MessagePack format.Methods in org.apache.juneau.marshall.msgpack that return TokenWriterModifier and TypeMethodDescriptionMsgPackTokenWriter.binary(byte[] value) MsgPackTokenWriter.bool(boolean value) MsgPackTokenWriter.endArray()MsgPackTokenWriter.endObject()MsgPackTokenWriter.nil()MsgPackTokenWriter.number(double value) MsgPackTokenWriter.number(long value) MsgPackTokenWriter.number(BigDecimal value) MsgPackTokenWriter.number(BigInteger value) MsgPackTokenWriter.startArray()MsgPackTokenWriter.startObject()MsgPackSerializer.writeTokens(Object output) Convenience delegator that opens aMsgPackTokenWriterover the output using default session arguments (mirrorsOutputStreamSerializer.write(Object)).MsgPackSerializerSession.writeTokens(Object output) Opens a low-level push generator that emits MessagePack one structural event at a time, bound to this live session. -
Uses of TokenWriter in org.apache.juneau.marshall.stream
Methods in org.apache.juneau.marshall.stream that return TokenWriterModifier and TypeMethodDescriptionTokenWriter.binary(byte[] value) Emits aTokenType.VALUE_BINARYevent.TokenWriter.bool(boolean value) Emits aTokenType.VALUE_BOOLEANevent.TokenWriter.endArray()Emits aTokenType.END_ARRAYevent.TokenWriter.endObject()Emits aTokenType.END_OBJECTevent.Emits aTokenType.FIELD_NAMEevent for the next field of the enclosing object.TokenWriter.nil()Emits aTokenType.VALUE_NULLevent.TokenWriter.number(double value) Emits aTokenType.VALUE_NUMBERevent for adouble.TokenWriter.number(long value) Emits aTokenType.VALUE_NUMBERevent for along.Emits aTokenType.VALUE_NUMBERevent for an arbitraryNumber.TokenWriter.number(BigDecimal value) Emits aTokenType.VALUE_NUMBERevent for aBigDecimal.TokenWriter.number(BigInteger value) Emits aTokenType.VALUE_NUMBERevent for aBigInteger.default TokenWriterEmits an arbitrary POJO through the format's structural events.TokenWriter.startArray()Emits aTokenType.START_ARRAYevent.TokenWriter.startObject()Emits aTokenType.START_OBJECTevent.Emits aTokenType.VALUE_STRINGevent.default TokenWriterImplementsRecordWriter.write(Object)by delegating toobject(Object).default TokenWriterTokenWriter.writeExt(int type, byte[] payload) Emits a typed-binary value (signed type byte + binary payload).default TokenWriterTokenWriter.writeSimple(int value) Emits an opaque simple value.default TokenWriterTokenWriter.writeTag(long tagNumber) Emits a semantic tag prefixing the next value emit.TokenWritable.writeTokens(Object output) Opens a low-levelTokenWriterpush generator targeting the specified output.Methods in org.apache.juneau.marshall.stream with parameters of type TokenWriterModifier and TypeMethodDescriptionstatic voidPojoWalker.walk(TokenWriter w, Object value) Walks the given value and emits its structure through the given writer usingdefault options.static voidPojoWalker.walk(TokenWriter w, Object value, PojoWalker.Options options) Walks the given value and emits its structure through the given writer using the supplied options.static RecordWriterStreamingArrayRecord.writer(TokenWriter cursor) Wraps aTokenWriteras a streaming array-elementRecordWriter. -
Uses of TokenWriter in org.apache.juneau.rest.client
Method parameters in org.apache.juneau.rest.client with type arguments of type TokenWriterModifier and TypeMethodDescriptionstatic RecordStreamBodyRecordStreamBody.token(Consumer<TokenWriter> consumer) Creates a body that streams via aTokenWriter(fine-grained structural cursor) using the default JSON serializer.static RecordStreamBodyRecordStreamBody.token(Serializer serializer, Consumer<TokenWriter> consumer) Creates a body that streams via aTokenWriter(fine-grained structural cursor) using the given serializer. -
Uses of TokenWriter in org.apache.juneau.rest.client.classic
Method parameters in org.apache.juneau.rest.client.classic with type arguments of type TokenWriterModifier and TypeMethodDescriptionstatic RecordStreamBodyRecordStreamBody.token(Consumer<TokenWriter> consumer) Creates a body that streams via aTokenWriter(fine-grained structural cursor).