3
3
* Copyright (c) 2007- Tatu Saloranta, [email protected]
4
4
*/
5
5
6
- package com . fasterxml .jackson .core ;
6
+ package tools .jackson .core ;
7
7
8
8
import java .io .*;
9
9
import java .math .BigDecimal ;
10
10
import java .math .BigInteger ;
11
11
12
- import com . fasterxml .jackson .core .async .NonBlockingInputFeeder ;
13
- import com . fasterxml .jackson .core .exc .InputCoercionException ;
14
- import com . fasterxml .jackson .core .exc .StreamReadException ;
15
- import com . fasterxml .jackson .core .exc .WrappedIOException ;
16
- import com . fasterxml .jackson .core .json .JsonFactory ;
17
- import com . fasterxml .jackson .core .sym .PropertyNameMatcher ;
18
- import com . fasterxml .jackson .core .type .ResolvedType ;
19
- import com . fasterxml .jackson .core .type .TypeReference ;
20
- import com . fasterxml .jackson .core .util .JacksonFeatureSet ;
12
+ import tools .jackson .core .async .NonBlockingInputFeeder ;
13
+ import tools .jackson .core .exc .InputCoercionException ;
14
+ import tools .jackson .core .exc .StreamReadException ;
15
+ import tools .jackson .core .exc .WrappedIOException ;
16
+ import tools .jackson .core .json .JsonFactory ;
17
+ import tools .jackson .core .sym .PropertyNameMatcher ;
18
+ import tools .jackson .core .type .ResolvedType ;
19
+ import tools .jackson .core .type .TypeReference ;
20
+ import tools .jackson .core .util .JacksonFeatureSet ;
21
21
22
22
/**
23
23
* Base class that defines public API for reading JSON content.
@@ -245,7 +245,7 @@ public JacksonFeatureSet<StreamReadCapability> streamReadCapabilities() {
245
245
* {@link StreamReadFeature#AUTO_CLOSE_SOURCE} is enabled.
246
246
* Whether parser owns the input source depends on factory
247
247
* method that was used to construct instance (so check
248
- * {@link com.fasterxml .jackson.core.json.JsonFactory} for details,
248
+ * {@link tools .jackson.core.json.JsonFactory} for details,
249
249
* but the general
250
250
* idea is that if caller passes in closable resource (such
251
251
* as {@link InputStream} or {@link Reader}) parser does NOT
@@ -367,7 +367,7 @@ public int releaseBuffered(OutputStream out) throws JacksonException {
367
367
* to indicate end-of-input
368
368
*
369
369
* @throws JacksonException for low-level read issues
370
- * @throws com.fasterxml .jackson.core.exc.StreamReadException for decoding problems
370
+ * @throws tools .jackson.core.exc.StreamReadException for decoding problems
371
371
*/
372
372
public abstract JsonToken nextToken () throws JacksonException ;
373
373
@@ -390,7 +390,7 @@ public int releaseBuffered(OutputStream out) throws JacksonException {
390
390
*
391
391
*
392
392
* @throws JacksonException for low-level read issues
393
- * @throws com.fasterxml .jackson.core.exc.StreamReadException for decoding problems
393
+ * @throws tools .jackson.core.exc.StreamReadException for decoding problems
394
394
*/
395
395
public abstract JsonToken nextValue () throws JacksonException ;
396
396
@@ -411,7 +411,7 @@ public int releaseBuffered(OutputStream out) throws JacksonException {
411
411
* @return This parser, to allow call chaining
412
412
*
413
413
* @throws JacksonException for low-level read issues
414
- * @throws com.fasterxml .jackson.core.exc.StreamReadException for decoding problems
414
+ * @throws tools .jackson.core.exc.StreamReadException for decoding problems
415
415
*/
416
416
public abstract JsonParser skipChildren () throws JacksonException ;
417
417
@@ -428,7 +428,7 @@ public int releaseBuffered(OutputStream out) throws JacksonException {
428
428
* overridden by sub-classes.
429
429
*
430
430
* @throws JacksonException for low-level read issues
431
- * @throws com.fasterxml .jackson.core.exc.StreamReadException for decoding problems
431
+ * @throws tools .jackson.core.exc.StreamReadException for decoding problems
432
432
*/
433
433
public abstract void finishToken () throws JacksonException ;
434
434
@@ -449,7 +449,7 @@ public int releaseBuffered(OutputStream out) throws JacksonException {
449
449
* {@code null} if next token is of some other type
450
450
*
451
451
* @throws JacksonException for low-level read issues
452
- * @throws com.fasterxml .jackson.core.exc.StreamReadException for decoding problems
452
+ * @throws tools .jackson.core.exc.StreamReadException for decoding problems
453
453
*/
454
454
public abstract String nextName () throws JacksonException ;
455
455
@@ -473,7 +473,7 @@ public int releaseBuffered(OutputStream out) throws JacksonException {
473
473
* specified name; {@code false} otherwise (different token or non-matching name)
474
474
*
475
475
* @throws JacksonException for low-level read issues
476
- * @throws com.fasterxml .jackson.core.exc.StreamReadException for decoding problems
476
+ * @throws tools .jackson.core.exc.StreamReadException for decoding problems
477
477
*/
478
478
public abstract boolean nextName (SerializableString str ) throws JacksonException ;
479
479
@@ -489,7 +489,7 @@ public int releaseBuffered(OutputStream out) throws JacksonException {
489
489
* code otherwise (see {@link PropertyNameMatcher} for details)
490
490
*
491
491
* @throws WrappedIOException for low-level read issues
492
- * @throws com.fasterxml .jackson.core.exc.StreamReadException for decoding problems
492
+ * @throws tools .jackson.core.exc.StreamReadException for decoding problems
493
493
*
494
494
* @since 3.0
495
495
*/
@@ -532,7 +532,7 @@ public int releaseBuffered(OutputStream out) throws JacksonException {
532
532
* to; or {@code null} if next token is of some other type
533
533
*
534
534
* @throws WrappedIOException for low-level read issues
535
- * @throws com.fasterxml .jackson.core.exc.StreamReadException for decoding problems
535
+ * @throws tools .jackson.core.exc.StreamReadException for decoding problems
536
536
*/
537
537
public String nextTextValue () throws JacksonException {
538
538
return (nextToken () == JsonToken .VALUE_STRING ) ? getText () : null ;
@@ -557,8 +557,8 @@ public String nextTextValue() throws JacksonException {
557
557
* to; or {@code defaultValue} if next token is of some other type
558
558
*
559
559
* @throws JacksonException for low-level read issues
560
- * @throws com.fasterxml .jackson.core.exc.StreamReadException for decoding problems
561
- * @throws com.fasterxml .jackson.core.exc.InputCoercionException if integer number does not fit in Java {@code int}
560
+ * @throws tools .jackson.core.exc.StreamReadException for decoding problems
561
+ * @throws tools .jackson.core.exc.InputCoercionException if integer number does not fit in Java {@code int}
562
562
*/
563
563
public int nextIntValue (int defaultValue ) throws JacksonException {
564
564
return (nextToken () == JsonToken .VALUE_NUMBER_INT ) ? getIntValue () : defaultValue ;
@@ -583,8 +583,8 @@ public int nextIntValue(int defaultValue) throws JacksonException {
583
583
* to; or {@code defaultValue} if next token is of some other type
584
584
*
585
585
* @throws WrappedIOException for low-level read issues
586
- * @throws com.fasterxml .jackson.core.exc.StreamReadException for decoding problems
587
- * @throws com.fasterxml .jackson.core.exc.InputCoercionException if integer number does not fit in Java {@code long}
586
+ * @throws tools .jackson.core.exc.StreamReadException for decoding problems
587
+ * @throws tools .jackson.core.exc.InputCoercionException if integer number does not fit in Java {@code long}
588
588
*/
589
589
public long nextLongValue (long defaultValue ) throws JacksonException {
590
590
return (nextToken () == JsonToken .VALUE_NUMBER_INT ) ? getLongValue () : defaultValue ;
@@ -608,7 +608,7 @@ public long nextLongValue(long defaultValue) throws JacksonException {
608
608
* token parser advanced to; or {@code null} if next token is of some other type
609
609
*
610
610
* @throws WrappedIOException for low-level read issues
611
- * @throws com.fasterxml .jackson.core.exc.StreamReadException for decoding problems
611
+ * @throws tools .jackson.core.exc.StreamReadException for decoding problems
612
612
*/
613
613
public Boolean nextBooleanValue () throws JacksonException {
614
614
JsonToken t = nextToken ();
@@ -812,7 +812,7 @@ public Boolean nextBooleanValue() throws JacksonException {
812
812
* by {@link #nextToken()} or other iteration methods)
813
813
*
814
814
* @throws WrappedIOException for low-level read issues
815
- * @throws com.fasterxml .jackson.core.exc.StreamReadException for decoding problems
815
+ * @throws tools .jackson.core.exc.StreamReadException for decoding problems
816
816
*/
817
817
public abstract String getText () throws JacksonException ;
818
818
@@ -832,7 +832,7 @@ public Boolean nextBooleanValue() throws JacksonException {
832
832
* @return The number of characters written to the Writer
833
833
*
834
834
* @throws WrappedIOException for low-level read issues, or failed write using {@link Writer}
835
- * @throws com.fasterxml .jackson.core.exc.StreamReadException for decoding problems
835
+ * @throws tools .jackson.core.exc.StreamReadException for decoding problems
836
836
*/
837
837
public abstract int getText (Writer writer ) throws JacksonException ;
838
838
@@ -865,7 +865,7 @@ public Boolean nextBooleanValue() throws JacksonException {
865
865
* at offset 0, and not necessarily until the end of buffer)
866
866
*
867
867
* @throws WrappedIOException for low-level read issues
868
- * @throws com.fasterxml .jackson.core.exc.StreamReadException for decoding problems
868
+ * @throws tools .jackson.core.exc.StreamReadException for decoding problems
869
869
*/
870
870
public abstract char [] getTextCharacters () throws JacksonException ;
871
871
@@ -878,7 +878,7 @@ public Boolean nextBooleanValue() throws JacksonException {
878
878
* textual content of the current token.
879
879
*
880
880
* @throws WrappedIOException for low-level read issues
881
- * @throws com.fasterxml .jackson.core.exc.StreamReadException for decoding problems
881
+ * @throws tools .jackson.core.exc.StreamReadException for decoding problems
882
882
*/
883
883
public abstract int getTextLength () throws JacksonException ;
884
884
@@ -891,7 +891,7 @@ public Boolean nextBooleanValue() throws JacksonException {
891
891
* textual content of the current token.
892
892
*
893
893
* @throws WrappedIOException for low-level read issues
894
- * @throws com.fasterxml .jackson.core.exc.StreamReadException for decoding problems
894
+ * @throws tools .jackson.core.exc.StreamReadException for decoding problems
895
895
*/
896
896
public abstract int getTextOffset () throws JacksonException ;
897
897
@@ -1188,7 +1188,7 @@ public Boolean nextBooleanValue() throws JacksonException {
1188
1188
* @return Decoded binary data
1189
1189
*
1190
1190
* @throws WrappedIOException for low-level read issues
1191
- * @throws com.fasterxml .jackson.core.exc.StreamReadException for decoding problems
1191
+ * @throws tools .jackson.core.exc.StreamReadException for decoding problems
1192
1192
*/
1193
1193
public abstract byte [] getBinaryValue (Base64Variant bv ) throws JacksonException ;
1194
1194
@@ -1200,7 +1200,7 @@ public Boolean nextBooleanValue() throws JacksonException {
1200
1200
* @return Decoded binary data
1201
1201
*
1202
1202
* @throws WrappedIOException for low-level read issues
1203
- * @throws com.fasterxml .jackson.core.exc.StreamReadException for decoding problems
1203
+ * @throws tools .jackson.core.exc.StreamReadException for decoding problems
1204
1204
*/
1205
1205
public byte [] getBinaryValue () throws JacksonException {
1206
1206
return getBinaryValue (Base64Variants .getDefaultVariant ());
@@ -1219,7 +1219,7 @@ public byte[] getBinaryValue() throws JacksonException {
1219
1219
* @return Number of bytes that were decoded and written via {@link OutputStream}
1220
1220
*
1221
1221
* @throws WrappedIOException for low-level read issues
1222
- * @throws com.fasterxml .jackson.core.exc.StreamReadException for decoding problems
1222
+ * @throws tools .jackson.core.exc.StreamReadException for decoding problems
1223
1223
*/
1224
1224
public int readBinaryValue (OutputStream out ) throws JacksonException {
1225
1225
return readBinaryValue (Base64Variants .getDefaultVariant (), out );
@@ -1235,7 +1235,7 @@ public int readBinaryValue(OutputStream out) throws JacksonException {
1235
1235
* @return Number of bytes that were decoded and written via {@link OutputStream}
1236
1236
*
1237
1237
* @throws WrappedIOException for low-level read issues
1238
- * @throws com.fasterxml .jackson.core.exc.StreamReadException for decoding problems
1238
+ * @throws tools .jackson.core.exc.StreamReadException for decoding problems
1239
1239
*/
1240
1240
public int readBinaryValue (Base64Variant bv , OutputStream out ) throws JacksonException {
1241
1241
_reportUnsupportedOperation ();
0 commit comments