java.lang.Object | |
↳ | com.fasterxml.jackson.core.util.TextBuffer |
TextBuffer is a class similar to StringBuffer, with following differences:
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Convenience method for converting contents of the buffer
into a
BigDecimal . | |||||||||||
Convenience method for converting contents of the buffer
into a Double value.
| |||||||||||
Method called to make sure that buffer is not using shared input
buffer; if it is, it will copy such contents to private buffer.
| |||||||||||
Method called to expand size of the current segment, to
accomodate for more contiguous content.
| |||||||||||
Method that can be used to check whether textual contents can
be efficiently accessed using
getTextBuffer() . | |||||||||||
Method called to indicate that the underlying buffers should now
be recycled if they haven't yet been recycled.
| |||||||||||
Method called to clear out any content text buffer may have, and
initializes buffer to use non-shared data.
| |||||||||||
Method called to initialize the buffer with a shared copy of data;
this means that buffer will just have pointers to actual data.
| |||||||||||
Note: calling this method may not be as efficient as calling
contentsAsString() , since it's not guaranteed that resulting
String is cached. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Convenience method for converting contents of the buffer
into a BigDecimal
.
NumberFormatException |
---|
Convenience method for converting contents of the buffer into a Double value.
NumberFormatException |
---|
Method called to make sure that buffer is not using shared input buffer; if it is, it will copy such contents to private buffer.
Method called to expand size of the current segment, to accomodate for more contiguous content. Usually only used when parsing tokens like names.
Method that can be used to check whether textual contents can
be efficiently accessed using getTextBuffer()
.
Method called to indicate that the underlying buffers should now be recycled if they haven't yet been recycled. Although caller can still use this text buffer, it is not advisable to call this method if that is likely, since next time a buffer is needed, buffers need to reallocated. Note: calling this method automatically also clears contents of the buffer.
Method called to clear out any content text buffer may have, and initializes buffer to use non-shared data.
Method called to initialize the buffer with a shared copy of data; this means that buffer will just have pointers to actual data. It also means that if anything is to be appended to the buffer, it will first have to unshare it (make a local copy).
Note: calling this method may not be as efficient as calling
contentsAsString()
, since it's not guaranteed that resulting
String is cached.