Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
Jackson Core Source Code
Jackson is "the Java JSON library" or "the best JSON parser for Java". Or simply as "JSON for Java".
Jackson Core Source Code files are provided in the source packge (jackson-core-2.14.0-sources.jar). You can download it at Jackson Maven Website.
You can also browse Jackson Core Source Code below:
✍: FYIcenter.com
⏎ com/fasterxml/jackson/core/exc/InputCoercionException.java
package com.fasterxml.jackson.core.exc; import com.fasterxml.jackson.core.*; import com.fasterxml.jackson.core.util.RequestPayload; /** * Exception type for read-side problems that are not direct decoding ("parsing") * problems (those would be reported as {@link com.fasterxml.jackson.core.JsonParseException}s), * but rather result from failed attempts to convert specific Java value out of valid * but incompatible input value. One example is numeric coercions where target number type's * range does not allow mapping of too large/too small input value. * * @since 2.10 */ public class InputCoercionException extends StreamReadException { private static final long serialVersionUID = 1L; /** * Input token that represents input value that failed to coerce. */ protected final JsonToken _inputType; /** * Target type that input value failed to coerce to. */ protected final Class<?> _targetType; /** * Constructor that uses current parsing location as location, and * sets processor (accessible via {@link #getProcessor()}) to * specified parser. * * @param p Parser in use at the point where failure occurred * @param msg Exception mesage to use * @param inputType Shape of input that failed to coerce * @param targetType Target type of failed coercion */ public InputCoercionException(JsonParser p, String msg, JsonToken inputType, Class<?> targetType) { super(p, msg); _inputType = inputType; _targetType = targetType; } /** * Fluent method that may be used to assign originating {@link JsonParser}, * to be accessed using {@link #getProcessor()}. *<p> * NOTE: `this` instance is modified and no new instance is constructed. */ @Override public InputCoercionException withParser(JsonParser p) { _processor = p; return this; } @Override public InputCoercionException withRequestPayload(RequestPayload p) { _requestPayload = p; return this; } /** * Accessor for getting information about input type (in form of token, giving "shape" * of input) for which coercion failed. * * @return "Shape" of input for which coercion failed, as {@link JsonToken} */ public JsonToken getInputType() { return _inputType; } /** * Accessor for getting information about target type (in form of Java {@link java.lang.Class}) * for which coercion failed. * * @return Target type of failed conversion */ public Class<?> getTargetType() { return _targetType; } }
⏎ com/fasterxml/jackson/core/exc/InputCoercionException.java
Or download all of them as a single archive file:
File name: jackson-core-2.14.0-sources.jar File size: 497693 bytes Release date: 2022-11-05 Download
⇒ Download and Install Jackson Binary Package
2016-02-03, 57111👍, 1💬
Popular Posts:
JDK 11 jdk.javadoc.jmod is the JMOD file for JDK 11 Java Document tool, which can be invoked by the ...
JDK 11 jdk.jfr.jmod is the JMOD file for JDK 11 JFR module. JDK 11 JFR module compiled class files a...
How to read XML document with DTD validation from socket connections with the socket\DelayedInput.ja.. .
ASM is an all purpose Java bytecode manipulation and analysis framework. It can be used to modify ex...
Snappy-Java is a Java port of the "snappy", a fast C++ compresser/decompresser developed by Google. ...