A specialized JSON renderer that can render Bytes (Chars or Bytes) directly to a java.io.Writer or java.io.OutputStream
Note that we use an internal ByteBuilder
to buffer the output internally before sending it to out in batches. This lets us benefit from the high performance and minimal overhead of ByteBuilder
in the fast path of pushing characters, and avoid the synchronization/polymorphism overhead of out on the fast path. Most outs would also have performance benefits from receiving data in batches, rather than byte by byte.
Attributes
- Companion
- object
- Graph
-
- Supertypes
- Known subtypes
-
class BytesRenderer
Members list
Value members
Concrete methods
Value parameters
- index
-
json source position at the start of the
[
being visited
Attributes
- Returns
-
a Visitor used for visiting the elements of the array
Value parameters
- index
-
json source position at the start of the
false
being visited
Attributes
Attributes
- Definition Classes
-
JsVisitor -> Visitor
Optional handler for raw double values; can be overriden for performance in cases where you're translating directly between numbers to avoid the overhead of stringifying and re-parsing your numbers (e.g. the WebJson transformer gets raw doubles from the underlying Json.parse).
Optional handler for raw double values; can be overriden for performance in cases where you're translating directly between numbers to avoid the overhead of stringifying and re-parsing your numbers (e.g. the WebJson transformer gets raw doubles from the underlying Json.parse).
Delegates to visitFloat64StringParts
if not overriden
Value parameters
- d
-
the input number
- index
-
json source position at the start of the number being visited
Attributes
- Definition Classes
-
JsVisitor -> Visitor
Visit the number in its text representation.
Visit the number in its text representation.
Value parameters
- decIndex
-
index of the
.
, relative to the start of the CharSequence, or -1 if omitted - expIndex
-
index of
e
orE
relative to the start of the CharSequence, or -1 if omitted - index
-
json source position at the start of the number being visited
- s
-
unparsed text representation of the number.
Attributes
Attributes
- Definition Classes
-
JsVisitor -> Visitor
Attributes
- Definition Classes
-
JsVisitor -> Visitor
Value parameters
- index
-
json source position at the start of the
null
being visited
Attributes
Value parameters
- index
-
json source position at the start of the string being visited
- s
-
the text string being visited
Attributes
Value parameters
- index
-
json source position at the start of the
true
being visited
Attributes
Attributes
- Definition Classes
-
JsVisitor -> Visitor
Inherited methods
Attributes
- Inherited from:
- Visitor
Attributes
- Inherited from:
- Visitor
Attributes
- Inherited from:
- JsVisitor
Attributes
- Inherited from:
- JsVisitor
Attributes
- Inherited from:
- Visitor
Attributes
- Inherited from:
- Visitor
Convenience methods to help you compute the decimal-point-index and exponent-index of an arbitrary numeric string
Convenience methods to help you compute the decimal-point-index and exponent-index of an arbitrary numeric string
Value parameters
- index
-
json source position at the start of the string being visited
- s
-
the text string being visited
Attributes
- Inherited from:
- JsVisitor
Attributes
- Inherited from:
- JsVisitor