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 Data Binding Source Code
Jackson is "the Java JSON library" or "the best JSON parser for Java". Or simply as "JSON for Java".
Jackson Databind Source Code files are provided in the source packge (jackson-databind-2.14.0-sources.jar). You can download it at Jackson Maven Website.
You can also browse Jackson Databind Source Code below:
✍: FYIcenter.com
⏎ com/fasterxml/jackson/databind/deser/std/StackTraceElementDeserializer.java
package com.fasterxml.jackson.databind.deser.std; import java.io.IOException; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonToken; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.JsonDeserializer; import com.fasterxml.jackson.databind.JsonMappingException; public class StackTraceElementDeserializer extends StdScalarDeserializer<StackTraceElement> { private static final long serialVersionUID = 1L; protected final JsonDeserializer<?> _adapterDeserializer; @Deprecated // since 2.14 public StackTraceElementDeserializer() { this(null); } protected StackTraceElementDeserializer(JsonDeserializer<?> ad) { super(StackTraceElement.class); _adapterDeserializer = ad; } /** * @since 2.14 */ public static JsonDeserializer<?> construct(DeserializationContext ctxt) throws JsonMappingException { // 26-May-2022, tatu: for legacy use, need to do this: if (ctxt == null) { return new StackTraceElementDeserializer(); } JsonDeserializer<?> adapterDeser = ctxt.findNonContextualValueDeserializer(ctxt.constructType(Adapter.class)); return new StackTraceElementDeserializer(adapterDeser); } @Override public StackTraceElement deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { JsonToken t = p.currentToken(); // Must get an Object if (t == JsonToken.START_OBJECT || t == JsonToken.FIELD_NAME) { Adapter adapted; // 26-May-2022, tatu: for legacy use, need to do this: if (_adapterDeserializer == null) { adapted = ctxt.readValue(p, Adapter.class); } else { adapted = (Adapter) _adapterDeserializer.deserialize(p, ctxt); } return constructValue(ctxt, adapted); } else if (t == JsonToken.START_ARRAY && ctxt.isEnabled(DeserializationFeature.UNWRAP_SINGLE_VALUE_ARRAYS)) { p.nextToken(); final StackTraceElement value = deserialize(p, ctxt); if (p.nextToken() != JsonToken.END_ARRAY) { handleMissingEndArrayForSingle(p, ctxt); } return value; } return (StackTraceElement) ctxt.handleUnexpectedToken(_valueClass, p); } /** * @since 2.14 */ protected StackTraceElement constructValue(DeserializationContext ctxt, Adapter adapted) { return constructValue(ctxt, adapted.className, adapted.methodName, adapted.fileName, adapted.lineNumber, adapted.moduleName, adapted.moduleVersion, adapted.classLoaderName); } @Deprecated // since 2.9 protected StackTraceElement constructValue(DeserializationContext ctxt, String className, String methodName, String fileName, int lineNumber, String moduleName, String moduleVersion) { return constructValue(ctxt, className, methodName, fileName, lineNumber, moduleName, moduleVersion, null); } /** * Overridable factory method used for constructing {@link StackTraceElement}s. * * @since 2.8 */ protected StackTraceElement constructValue(DeserializationContext ctxt, String className, String methodName, String fileName, int lineNumber, String moduleName, String moduleVersion, String classLoaderName) { // 21-May-2016, tatu: With Java 9, could use different constructor, probably // via different module, and throw exception here if extra args passed return new StackTraceElement(className, methodName, fileName, lineNumber); } /** * Intermediate class used both for convenience of binding and * to support {@code PropertyNamingStrategy}. * * @since 2.14 */ public final static class Adapter { // NOTE: some String fields must not be nulls public String className = "", classLoaderName; public String declaringClass, format; public String fileName = "", methodName = ""; public int lineNumber = -1; public String moduleName, moduleVersion; public boolean nativeMethod; } }
⏎ com/fasterxml/jackson/databind/deser/std/StackTraceElementDeserializer.java
Or download all of them as a single archive file:
File name: jackson-databind-2.14.0-sources.jar File size: 1187952 bytes Release date: 2022-11-05 Download
⇒ Jackson Annotations Source Code
⇐ Download and Install Jackson Binary Package
2022-03-29, 48330👍, 0💬
Popular Posts:
Java Advanced Imaging (JAI) is a Java platform extension API that provides a set of object-oriented ...
Saxon is an open source product available under the Mozilla Public License. It provides implementati...
JAX-WS is an API for building web services and clients. It is the next generation Web Services API r...
What Is jms.jar? I heard it's related to JMS (Java Message Service) 1.1? The if you have an jms.jar ...
Jettison is a collection of Java APIs (like STaX and DOM) which read and write JSON. This allows nea...