@Override public int getTextLength() throws IOException, JsonParseException { return delegate.getTextLength(); }
int len = jp.getTextLength();
@Override public int getTextLength() throws IOException, JsonParseException { return delegate.getTextLength(); }
@Override public int getTextLength() throws IOException, JsonParseException { return parser.getTextLength(); }
case VALUE_STRING: if (jp.hasTextCharacters()) { writeString(jp.getTextCharacters(), jp.getTextOffset(), jp.getTextLength()); } else { writeString(jp.getText());
case VALUE_STRING: if (jp.hasTextCharacters()) { writeString(jp.getTextCharacters(), jp.getTextOffset(), jp.getTextLength()); } else { writeString(jp.getText());
int len = jp.getTextLength();
@Override public int getTextLength() throws IOException, JsonParseException { return parser.getTextLength(); }
@Override public int getTextLength() throws IOException, JsonParseException { return parser.getTextLength(); }
@Override public int getTextLength() throws IOException, JsonParseException { return delegate.getTextLength(); }
@Override public int getTextLength() throws IOException, JsonParseException { return delegate.getTextLength(); }
@Override public int getTextLength() throws IOException, JsonParseException { return parser.getTextLength(); }
case VALUE_STRING: if (jp.hasTextCharacters()) { writeString(jp.getTextCharacters(), jp.getTextOffset(), jp.getTextLength()); } else { writeString(jp.getText());
public char[] deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { /* Won't take arrays, must get a String (could also * convert other tokens to Strings... but let's not bother * yet, doesn't seem to make sense) */ if (jp.getCurrentToken() != JsonToken.VALUE_STRING) { throw ctxt.mappingException(_valueClass); } // note: can NOT return shared internal buffer, must copy: char[] buffer = jp.getTextCharacters(); int offset = jp.getTextOffset(); int len = jp.getTextLength(); char[] result = new char[len]; System.arraycopy(buffer, offset, result, 0, len); return result; } }
case VALUE_STRING: if (jp.hasTextCharacters()) { writeString(jp.getTextCharacters(), jp.getTextOffset(), jp.getTextLength()); } else { writeString(jp.getText());
int len = jp.getTextLength();
int len = jp.getTextLength();
int len = jp.getTextLength();
public Object deserializeFromString(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { if (_stringCreator != null) { return _stringCreator.construct(jp.getText()); } if (_delegatingCreator != null) { return _delegatingCreator.deserialize(jp, ctxt); } // [JACKSON-204]: allow "" as null equivalent for POJOs... if (ctxt.isEnabled(DeserializationConfig.Feature.ACCEPT_EMPTY_STRING_AS_NULL_OBJECT)) { if (jp.getTextLength() == 0) { return null; } } throw ctxt.instantiationException(getBeanClass(), "no suitable creator method found to deserialize from JSON String"); }
break; case VALUE_STRING: writeString(jp.getTextCharacters(), jp.getTextOffset(), jp.getTextLength()); break; case VALUE_NUMBER_INT: