| Modifier and Type | Field and Description |
|---|---|
| protected final Writer | |
| protected char[] | _outputBuffer
Intermediate buffer in which contents are buffered before
being written using |
| protected final int | _outputEnd
Offset to index after the last valid index in |
| protected int | _outputTail
Pointer to the next available location in |
| Access | Constructor and Description |
|---|---|
| public | WriterBackedGenerator(ObjectWriteContext writeCtxt, IOContext ioCtxt, int stdFeatures, JavaPropsSchema schema, Writer out)
|
| Modifier and Type | Method and Description |
|---|---|
| protected void | _appendPropertyName(StringBuilder path, String name)
Implements abstract tools.
|
| protected void | |
| protected void | |
| protected void | _releaseBuffers()
Implements abstract tools. Method called to release any buffers generator may be holding, once generator is being closed. |
| protected void | |
| protected void | |
| protected void | _writeEscapedEntry(String value)
Implements abstract tools.
|
| protected void | _writeEscapedEntry(char[] text, int offset, int len)
Implements abstract tools.
|
| protected void | |
| protected void | _writeRaw(char c)
Implements abstract tools.
|
| protected void | _writeRaw(String text)
Implements abstract tools.
|
| protected void | _writeRaw(StringBuilder text)
Implements abstract tools.
|
| protected void | _writeRaw(char[] text, int offset, int len)
Implements abstract tools.
|
| protected void | |
| protected void | |
| protected void | _writeUnescapedEntry(String value)
Implements abstract tools.
|
| public void | close()
Overrides tools. Implements java. Method called to close this generator, so that no more content can be written. |
| public void | flush()
Implements abstract tools. Implements java. Method called to flush any buffered content to the underlying target (output stream, writer), and to flush the target itself as well. |
| public int | streamWriteOutputBuffered()
Implements abstract tools. Method for verifying amount of content that is buffered by generator but not yet flushed to the underlying target (stream, writer), in units (byte, char) that the generator implementation uses for buffering; or -1 if this information is not available. |
| public Object | streamWriteOutputTarget()
Implements abstract tools. Method that can be used to get access to object that is used
as target for generated output; this is usually either
|
| _out | back to summary |
|---|---|
| protected final Writer _out Underlying | |
| _outputBuffer | back to summary |
|---|---|
| protected char[] _outputBuffer Intermediate buffer in which contents are buffered before
being written using | |
| _outputEnd | back to summary |
|---|---|
| protected final int _outputEnd Offset to index after the last valid index in | |
| _outputTail | back to summary |
|---|---|
| protected int _outputTail Pointer to the next available location in | |
| WriterBackedGenerator | back to summary |
|---|---|
| public WriterBackedGenerator(ObjectWriteContext writeCtxt, IOContext ioCtxt, int stdFeatures, JavaPropsSchema schema, Writer out) | |
| _appendPropertyName | back to summary |
|---|---|
| protected void _appendPropertyName(StringBuilder path, String name) Implements abstract tools.
| |
| _closeInput | back to summary |
|---|---|
| protected void _closeInput() throws IOException Implements abstract tools.
| |
| _flushBuffer | back to summary |
|---|---|
| protected void _flushBuffer() throws JacksonException | |
| _releaseBuffers | back to summary |
|---|---|
| protected void _releaseBuffers() Implements abstract tools. Doc from tools. Method called to release any buffers generator may be holding, once generator is being closed.
| |
| _writeEscaped | back to summary |
|---|---|
| protected void _writeEscaped(String value) throws JacksonException | |
| _writeEscaped | back to summary |
|---|---|
| protected void _writeEscaped(char[] text, int offset, int len) throws JacksonException | |
| _writeEscapedEntry | back to summary |
|---|---|
| protected void _writeEscapedEntry(String value) throws JacksonException Implements abstract tools.
| |
| _writeEscapedEntry | back to summary |
|---|---|
| protected void _writeEscapedEntry(char[] text, int offset, int len) throws JacksonException Implements abstract tools.
| |
| _writeLinefeed | back to summary |
|---|---|
| protected void _writeLinefeed() throws JacksonException | |
| _writeRaw | back to summary |
|---|---|
| protected void _writeRaw(char c) throws JacksonException Implements abstract tools.
| |
| _writeRaw | back to summary |
|---|---|
| protected void _writeRaw(String text) throws JacksonException Implements abstract tools.
| |
| _writeRaw | back to summary |
|---|---|
| protected void _writeRaw(StringBuilder text) throws JacksonException Implements abstract tools.
| |
| _writeRaw | back to summary |
|---|---|
| protected void _writeRaw(char[] text, int offset, int len) throws JacksonException Implements abstract tools.
| |
| _writeRawLong | back to summary |
|---|---|
| protected void _writeRawLong(String text) throws JacksonException | |
| _writeRawLong | back to summary |
|---|---|
| protected void _writeRawLong(StringBuilder text) throws JacksonException | |
| _writeUnescapedEntry | back to summary |
|---|---|
| protected void _writeUnescapedEntry(String value) throws JacksonException Implements abstract tools.
| |
| close | back to summary |
|---|---|
| public void close() Overrides tools. Implements java. Doc from tools. Method called to close this generator, so that no more content can be written.
Whether the underlying target (stream, writer) gets closed depends
on whether this generator either manages the target (i.e. is the
only one with access to the target -- case if caller passes a
reference to the resource such as File, but not stream); or
has feature
| |
| flush | back to summary |
|---|---|
| public void flush() Implements abstract tools. Implements java. Doc from tools. Method called to flush any buffered content to the underlying target (output stream, writer), and to flush the target itself as well.
| |
| streamWriteOutputBuffered | back to summary |
|---|---|
| public int streamWriteOutputBuffered() Implements abstract tools. Doc from tools. Method for verifying amount of content that is buffered by generator
but not yet flushed to the underlying target (stream, writer),
in units (byte, char) that the generator implementation uses for buffering;
or -1 if this information is not available.
Unit used is often the same as the unit of underlying target (that is,
Note was named
| |
| streamWriteOutputTarget | back to summary |
|---|---|
| public Object streamWriteOutputTarget() Implements abstract tools. Doc from tools. Method that can be used to get access to object that is used
as target for generated output; this is usually either
In general use of this accessor should be considered as "last effort", i.e. only used if no other mechanism is applicable. Note was named
| |