File tree 1 file changed +7
-2
lines changed
src/main/java/com/fasterxml/jackson/core
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 14
14
import com .fasterxml .jackson .core .exc .InputCoercionException ;
15
15
import com .fasterxml .jackson .core .json .JsonReadFeature ;
16
16
import com .fasterxml .jackson .core .type .TypeReference ;
17
- import com .fasterxml .jackson .core .util .JacksonFeatureSet ;
18
- import com .fasterxml .jackson .core .util .RequestPayload ;
17
+ import com .fasterxml .jackson .core .util .*;
19
18
20
19
/**
21
20
* Base class that defines public API for reading JSON content.
@@ -1575,6 +1574,12 @@ public String currentName() throws IOException {
1575
1574
* but should typically be more efficient as longer content does need to
1576
1575
* be combined into a single <code>String</code> to return, and write
1577
1576
* can occur directly from intermediate buffers Jackson uses.
1577
+ *<p>
1578
+ * NOTE: textual content <b>will</b> still be buffered (usually
1579
+ * using {@link TextBuffer}) and <b>will</b> be accessible with
1580
+ * other {@code getText()} calls (that is, it will not be consumed).
1581
+ * So this accessor only avoids construction of {@link java.lang.String}
1582
+ * compared to plain {@link #getText()} method.
1578
1583
*
1579
1584
* @param writer Writer to write textual content to
1580
1585
*
You can’t perform that action at this time.
0 commit comments