Returns everything written so far.
Returns everything written so far.
May optionally fail with an IllegalStateException if the data written is not valid, e.g. an open Object or Array has not been closed. However, implementations are not required to validate the produced result.
After writing an attribute name, write its value using one of the other writeXxx methods
Can be overridden by a particular implementation to intercept certain types, based on runtime type checking of t
,
and write them in some backend-specific way without using the provided pickler
.
Can be overridden by a particular implementation to intercept certain types, based on runtime type checking of t
,
and write them in some backend-specific way without using the provided pickler
.
Otherwise, if the type is not being overridden, delegates to the pickler
provided.
Writes a stream of tokens to an internal mutable buffer.
Instances are assumed to be mutable and not safe for concurrent write access, with some sort of mutable buffer or builder collecting the Result.
Methods may, but are not required to, fail with an IllegalStateException if called in an illegal sequence (e.g. writeAttributeName twice in a row).