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/util/RequestPayload.java
package com.fasterxml.jackson.core.util; import java.io.IOException; /** * Container object used to contain optional information on content * being parsed, passed to {@link com.fasterxml.jackson.core.JsonParseException} in case of * exception being thrown; this may be useful for caller to display * information on failure. * * @since 2.8 */ public class RequestPayload implements java.io.Serializable // just in case, even though likely included as transient { private static final long serialVersionUID = 1L; // request payload as byte[] protected byte[] _payloadAsBytes; // request payload as String protected CharSequence _payloadAsText; // Charset if the request payload is set in bytes protected String _charset; public RequestPayload(byte[] bytes, String charset) { if (bytes == null) { throw new IllegalArgumentException(); } _payloadAsBytes = bytes; _charset = (charset == null || charset.isEmpty()) ? "UTF-8" : charset; } public RequestPayload(CharSequence str) { if (str == null) { throw new IllegalArgumentException(); } _payloadAsText = str; } /** * Returns the raw request payload object i.e, either byte[] or String * * @return Object which is a raw request payload i.e, either byte[] or * String */ public Object getRawPayload() { if (_payloadAsBytes != null) { return _payloadAsBytes; } return _payloadAsText; } @Override public String toString() { if (_payloadAsBytes != null) { try { return new String(_payloadAsBytes, _charset); } catch (IOException e) { throw new RuntimeException(e); } } return _payloadAsText.toString(); } }
⏎ com/fasterxml/jackson/core/util/RequestPayload.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, 38979👍, 1💬
Popular Posts:
Saxon is an open source product available under the Mozilla Public License. It provides implementati...
Jackson is "the Java JSON library" or "the best JSON parser for Java". Or simply as "JSON for Java"....
What Is mail.jar of JavaMail 1.4? I got the JAR file from javamail-1_4.zip. mail.jar in javamail-1_4...
What Is ojdbc8.jar for Oracle 12c R2? ojdbc8.jar for Oracle 12c R2 is the JAR files of ojdbc.jar, JD...
What Is javaws.jar in JRE (Java Runtime Environment) 8? javaws.jar in JRE (Java Runtime Environment)...