Categories:
Audio (13)
Biotech (29)
Bytecode (35)
Database (77)
Framework (7)
Game (7)
General (512)
Graphics (53)
I/O (32)
IDE (2)
JAR Tools (86)
JavaBeans (16)
JDBC (89)
JDK (337)
JSP (20)
Logging (103)
Mail (54)
Messaging (8)
Network (71)
PDF (94)
Report (7)
Scripting (83)
Security (32)
Server (119)
Servlet (17)
SOAP (24)
Testing (50)
Web (19)
XML (301)
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.12.4-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/filter/JsonPointerBasedFilter.java
package com.fasterxml.jackson.core.filter; import com.fasterxml.jackson.core.JsonPointer; /** * Simple {@link TokenFilter} implementation that takes a single * {@link JsonPointer} and matches a single value accordingly. * Instances are immutable and fully thread-safe, shareable, * and efficient to use. * * @since 2.6 */ public class JsonPointerBasedFilter extends TokenFilter { protected final JsonPointer _pathToMatch; public JsonPointerBasedFilter(String ptrExpr) { this(JsonPointer.compile(ptrExpr)); } public JsonPointerBasedFilter(JsonPointer match) { _pathToMatch = match; } @Override public TokenFilter includeElement(int index) { JsonPointer next = _pathToMatch.matchElement(index); if (next == null) { return null; } if (next.matches()) { return TokenFilter.INCLUDE_ALL; } return new JsonPointerBasedFilter(next); } @Override public TokenFilter includeProperty(String name) { JsonPointer next = _pathToMatch.matchProperty(name); if (next == null) { return null; } if (next.matches()) { return TokenFilter.INCLUDE_ALL; } return new JsonPointerBasedFilter(next); } @Override public TokenFilter filterStartArray() { return this; } @Override public TokenFilter filterStartObject() { return this; } @Override protected boolean _includeScalar() { // should only occur for root-level scalars, path "/" return _pathToMatch.matches(); } @Override public String toString() { return "[JsonPointerFilter at: "+_pathToMatch+"]"; } }
⏎ com/fasterxml/jackson/core/filter/JsonPointerBasedFilter.java
Â
⇒ Download and Install Jackson Binary Package
⇠What Is Jackson
⇑ Downloading and Reviewing jackson-*.jar
⇑⇑ Jackson - Java JSON library
2016-02-03, 29559👍, 1💬
Popular Posts:
MP3SPI is a Java Service Provider Interface that adds MP3 (MPEG 1/2/2.5 Layer 1/2/3) audio format su...
JDK 11 jdk.compiler.jmod is the JMOD file for JDK 11 Compiler tool, which can be invoked by the "jav...
JRE 8 deploy.jar is the JAR file for JRE 8 Java Control Panel and other deploy tools. JRE (Java Runt...
JDK 11 jdk.localedata.jmod is the JMOD file for JDK 11 Localedata module. JDK 11 Locale Data module ...
JDK 11 java.sql.rowset.jmod is the JMOD file for JDK 11 SQL Rowset module. JDK 11 SQL Rowset module ...