mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Add tests for JacksonSerializability
Upgraded jackson stubs to 2.12
This commit is contained in:
@@ -1 +1 @@
|
||||
//semmle-extractor-options: --javac-args -cp ${testdir}/../../../../stubs/apache-http-4.4.13/:${testdir}/../../../../stubs/servlet-api-2.4:${testdir}/../../../../stubs/fastjson-1.2.74/:${testdir}/../../../../stubs/gson-2.8.6/:${testdir}/../../../../stubs/jackson-databind-2.10/:${testdir}/../../../../stubs/springframework-5.3.8/
|
||||
//semmle-extractor-options: --javac-args -cp ${testdir}/../../../../stubs/apache-http-4.4.13/:${testdir}/../../../../stubs/servlet-api-2.4:${testdir}/../../../../stubs/fastjson-1.2.74/:${testdir}/../../../../stubs/gson-2.8.6/:${testdir}/../../../../stubs/jackson-databind-2.12/:${testdir}/../../../../stubs/springframework-5.3.8/
|
||||
|
||||
@@ -1 +1 @@
|
||||
//semmle-extractor-options: --javac-args -cp ${testdir}/../../../stubs/jackson-databind-2.10
|
||||
//semmle-extractor-options: --javac-args -cp ${testdir}/../../../stubs/jackson-databind-2.12
|
||||
|
||||
@@ -1 +1 @@
|
||||
//semmle-extractor-options: --javac-args -cp ${testdir}/../../../stubs/servlet-api-2.4:${testdir}/../../../stubs/springframework-5.3.8:${testdir}/../../../stubs/google-android-9.0.0:${testdir}/../../../stubs/playframework-2.6.x:${testdir}/../../../stubs/jackson-databind-2.10:${testdir}/../../../stubs/akka-2.6.x
|
||||
//semmle-extractor-options: --javac-args -cp ${testdir}/../../../stubs/servlet-api-2.4:${testdir}/../../../stubs/springframework-5.3.8:${testdir}/../../../stubs/google-android-9.0.0:${testdir}/../../../stubs/playframework-2.6.x:${testdir}/../../../stubs/jackson-databind-2.12:${testdir}/../../../stubs/akka-2.6.x
|
||||
|
||||
316
java/ql/test/library-tests/frameworks/jackson/Test.java
Normal file
316
java/ql/test/library-tests/frameworks/jackson/Test.java
Normal file
@@ -0,0 +1,316 @@
|
||||
package generatedtest;
|
||||
|
||||
import com.fasterxml.jackson.core.JsonFactory;
|
||||
import com.fasterxml.jackson.core.JsonParser;
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
import com.fasterxml.jackson.databind.JavaType;
|
||||
import com.fasterxml.jackson.databind.JsonNode;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.fasterxml.jackson.databind.ObjectReader;
|
||||
import java.io.DataInput;
|
||||
import java.io.File;
|
||||
import java.io.InputStream;
|
||||
import java.io.Reader;
|
||||
import java.net.URL;
|
||||
import java.util.Map;
|
||||
|
||||
// Test case generated by GenerateFlowTestCase.ql
|
||||
public class Test {
|
||||
|
||||
Object newWithMapValue(Object element) {
|
||||
return Map.of(null, element);
|
||||
}
|
||||
|
||||
Object source() {
|
||||
return null;
|
||||
}
|
||||
|
||||
void sink(Object o) {}
|
||||
|
||||
public void test() throws Exception {
|
||||
|
||||
{
|
||||
// "com.fasterxml.jackson.core;JsonFactory;false;createParser;;;Argument[0];ReturnValue;taint"
|
||||
JsonParser out = null;
|
||||
char[] in = (char[]) source();
|
||||
JsonFactory instance = null;
|
||||
out = instance.createParser(in, 0, 0);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "com.fasterxml.jackson.core;JsonFactory;false;createParser;;;Argument[0];ReturnValue;taint"
|
||||
JsonParser out = null;
|
||||
char[] in = (char[]) source();
|
||||
JsonFactory instance = null;
|
||||
out = instance.createParser(in);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "com.fasterxml.jackson.core;JsonFactory;false;createParser;;;Argument[0];ReturnValue;taint"
|
||||
JsonParser out = null;
|
||||
byte[] in = (byte[]) source();
|
||||
JsonFactory instance = null;
|
||||
out = instance.createParser(in, 0, 0);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "com.fasterxml.jackson.core;JsonFactory;false;createParser;;;Argument[0];ReturnValue;taint"
|
||||
JsonParser out = null;
|
||||
byte[] in = (byte[]) source();
|
||||
JsonFactory instance = null;
|
||||
out = instance.createParser(in);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "com.fasterxml.jackson.core;JsonFactory;false;createParser;;;Argument[0];ReturnValue;taint"
|
||||
JsonParser out = null;
|
||||
URL in = (URL) source();
|
||||
JsonFactory instance = null;
|
||||
out = instance.createParser(in);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "com.fasterxml.jackson.core;JsonFactory;false;createParser;;;Argument[0];ReturnValue;taint"
|
||||
JsonParser out = null;
|
||||
String in = (String) source();
|
||||
JsonFactory instance = null;
|
||||
out = instance.createParser(in);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "com.fasterxml.jackson.core;JsonFactory;false;createParser;;;Argument[0];ReturnValue;taint"
|
||||
JsonParser out = null;
|
||||
Reader in = (Reader) source();
|
||||
JsonFactory instance = null;
|
||||
out = instance.createParser(in);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "com.fasterxml.jackson.core;JsonFactory;false;createParser;;;Argument[0];ReturnValue;taint"
|
||||
JsonParser out = null;
|
||||
InputStream in = (InputStream) source();
|
||||
JsonFactory instance = null;
|
||||
out = instance.createParser(in);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "com.fasterxml.jackson.core;JsonFactory;false;createParser;;;Argument[0];ReturnValue;taint"
|
||||
JsonParser out = null;
|
||||
File in = (File) source();
|
||||
JsonFactory instance = null;
|
||||
out = instance.createParser(in);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "com.fasterxml.jackson.core;JsonFactory;false;createParser;;;Argument[0];ReturnValue;taint"
|
||||
JsonParser out = null;
|
||||
DataInput in = (DataInput) source();
|
||||
JsonFactory instance = null;
|
||||
out = instance.createParser(in);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "com.fasterxml.jackson.databind;ObjectMapper;false;createParser;;;Argument[0];ReturnValue;taint"
|
||||
JsonParser out = null;
|
||||
char[] in = (char[]) source();
|
||||
ObjectMapper instance = null;
|
||||
out = instance.createParser(in, 0, 0);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "com.fasterxml.jackson.databind;ObjectMapper;false;createParser;;;Argument[0];ReturnValue;taint"
|
||||
JsonParser out = null;
|
||||
char[] in = (char[]) source();
|
||||
ObjectMapper instance = null;
|
||||
out = instance.createParser(in);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "com.fasterxml.jackson.databind;ObjectMapper;false;createParser;;;Argument[0];ReturnValue;taint"
|
||||
JsonParser out = null;
|
||||
byte[] in = (byte[]) source();
|
||||
ObjectMapper instance = null;
|
||||
out = instance.createParser(in, 0, 0);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "com.fasterxml.jackson.databind;ObjectMapper;false;createParser;;;Argument[0];ReturnValue;taint"
|
||||
JsonParser out = null;
|
||||
byte[] in = (byte[]) source();
|
||||
ObjectMapper instance = null;
|
||||
out = instance.createParser(in);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "com.fasterxml.jackson.databind;ObjectMapper;false;createParser;;;Argument[0];ReturnValue;taint"
|
||||
JsonParser out = null;
|
||||
URL in = (URL) source();
|
||||
ObjectMapper instance = null;
|
||||
out = instance.createParser(in);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "com.fasterxml.jackson.databind;ObjectMapper;false;createParser;;;Argument[0];ReturnValue;taint"
|
||||
JsonParser out = null;
|
||||
String in = (String) source();
|
||||
ObjectMapper instance = null;
|
||||
out = instance.createParser(in);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "com.fasterxml.jackson.databind;ObjectMapper;false;createParser;;;Argument[0];ReturnValue;taint"
|
||||
JsonParser out = null;
|
||||
Reader in = (Reader) source();
|
||||
ObjectMapper instance = null;
|
||||
out = instance.createParser(in);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "com.fasterxml.jackson.databind;ObjectMapper;false;createParser;;;Argument[0];ReturnValue;taint"
|
||||
JsonParser out = null;
|
||||
InputStream in = (InputStream) source();
|
||||
ObjectMapper instance = null;
|
||||
out = instance.createParser(in);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "com.fasterxml.jackson.databind;ObjectMapper;false;createParser;;;Argument[0];ReturnValue;taint"
|
||||
JsonParser out = null;
|
||||
File in = (File) source();
|
||||
ObjectMapper instance = null;
|
||||
out = instance.createParser(in);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "com.fasterxml.jackson.databind;ObjectMapper;false;createParser;;;Argument[0];ReturnValue;taint"
|
||||
JsonParser out = null;
|
||||
DataInput in = (DataInput) source();
|
||||
ObjectMapper instance = null;
|
||||
out = instance.createParser(in);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "com.fasterxml.jackson.databind;ObjectMapper;true;convertValue;;;Argument[0];ReturnValue;taint"
|
||||
Object out = null;
|
||||
Object in = (Object) source();
|
||||
ObjectMapper instance = null;
|
||||
out = instance.convertValue(in, (TypeReference) null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "com.fasterxml.jackson.databind;ObjectMapper;true;convertValue;;;Argument[0];ReturnValue;taint"
|
||||
Object out = null;
|
||||
Object in = (Object) source();
|
||||
ObjectMapper instance = null;
|
||||
out = instance.convertValue(in, (JavaType) null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "com.fasterxml.jackson.databind;ObjectMapper;true;convertValue;;;Argument[0];ReturnValue;taint"
|
||||
Object out = null;
|
||||
Object in = (Object) source();
|
||||
ObjectMapper instance = null;
|
||||
out = instance.convertValue(in, (Class) null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "com.fasterxml.jackson.databind;ObjectMapper;true;valueToTree;;;Argument[0];ReturnValue;taint"
|
||||
JsonNode out = null;
|
||||
Object in = (Object) source();
|
||||
ObjectMapper instance = null;
|
||||
out = instance.valueToTree(in);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "com.fasterxml.jackson.databind;ObjectMapper;true;valueToTree;;;MapValue of
|
||||
// Argument[0];ReturnValue;taint"
|
||||
JsonNode out = null;
|
||||
Object in = (Object) newWithMapValue(source());
|
||||
ObjectMapper instance = null;
|
||||
out = instance.valueToTree(in);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "com.fasterxml.jackson.databind;ObjectReader;false;createParser;;;Argument[0];ReturnValue;taint"
|
||||
JsonParser out = null;
|
||||
char[] in = (char[]) source();
|
||||
ObjectReader instance = null;
|
||||
out = instance.createParser(in, 0, 0);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "com.fasterxml.jackson.databind;ObjectReader;false;createParser;;;Argument[0];ReturnValue;taint"
|
||||
JsonParser out = null;
|
||||
char[] in = (char[]) source();
|
||||
ObjectReader instance = null;
|
||||
out = instance.createParser(in);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "com.fasterxml.jackson.databind;ObjectReader;false;createParser;;;Argument[0];ReturnValue;taint"
|
||||
JsonParser out = null;
|
||||
byte[] in = (byte[]) source();
|
||||
ObjectReader instance = null;
|
||||
out = instance.createParser(in, 0, 0);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "com.fasterxml.jackson.databind;ObjectReader;false;createParser;;;Argument[0];ReturnValue;taint"
|
||||
JsonParser out = null;
|
||||
byte[] in = (byte[]) source();
|
||||
ObjectReader instance = null;
|
||||
out = instance.createParser(in);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "com.fasterxml.jackson.databind;ObjectReader;false;createParser;;;Argument[0];ReturnValue;taint"
|
||||
JsonParser out = null;
|
||||
URL in = (URL) source();
|
||||
ObjectReader instance = null;
|
||||
out = instance.createParser(in);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "com.fasterxml.jackson.databind;ObjectReader;false;createParser;;;Argument[0];ReturnValue;taint"
|
||||
JsonParser out = null;
|
||||
String in = (String) source();
|
||||
ObjectReader instance = null;
|
||||
out = instance.createParser(in);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "com.fasterxml.jackson.databind;ObjectReader;false;createParser;;;Argument[0];ReturnValue;taint"
|
||||
JsonParser out = null;
|
||||
Reader in = (Reader) source();
|
||||
ObjectReader instance = null;
|
||||
out = instance.createParser(in);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "com.fasterxml.jackson.databind;ObjectReader;false;createParser;;;Argument[0];ReturnValue;taint"
|
||||
JsonParser out = null;
|
||||
InputStream in = (InputStream) source();
|
||||
ObjectReader instance = null;
|
||||
out = instance.createParser(in);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "com.fasterxml.jackson.databind;ObjectReader;false;createParser;;;Argument[0];ReturnValue;taint"
|
||||
JsonParser out = null;
|
||||
File in = (File) source();
|
||||
ObjectReader instance = null;
|
||||
out = instance.createParser(in);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "com.fasterxml.jackson.databind;ObjectReader;false;createParser;;;Argument[0];ReturnValue;taint"
|
||||
JsonParser out = null;
|
||||
DataInput in = (DataInput) source();
|
||||
ObjectReader instance = null;
|
||||
out = instance.createParser(in);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
1
java/ql/test/library-tests/frameworks/jackson/options
Normal file
1
java/ql/test/library-tests/frameworks/jackson/options
Normal file
@@ -0,0 +1 @@
|
||||
//semmle-extractor-options: --javac-args -cp ${testdir}/../../../stubs/jackson-databind-2.12:${testdir}/../../../stubs/jackson-core-2.12
|
||||
53
java/ql/test/library-tests/frameworks/jackson/test.ql
Normal file
53
java/ql/test/library-tests/frameworks/jackson/test.ql
Normal file
@@ -0,0 +1,53 @@
|
||||
import java
|
||||
import semmle.code.java.dataflow.DataFlow
|
||||
import semmle.code.java.dataflow.ExternalFlow
|
||||
import semmle.code.java.dataflow.TaintTracking
|
||||
import TestUtilities.InlineExpectationsTest
|
||||
|
||||
class ValueFlowConf extends DataFlow::Configuration {
|
||||
ValueFlowConf() { this = "qltest:valueFlowConf" }
|
||||
|
||||
override predicate isSource(DataFlow::Node n) {
|
||||
n.asExpr().(MethodAccess).getMethod().hasName("source")
|
||||
}
|
||||
|
||||
override predicate isSink(DataFlow::Node n) {
|
||||
n.asExpr().(Argument).getCall().getCallee().hasName("sink")
|
||||
}
|
||||
}
|
||||
|
||||
class TaintFlowConf extends TaintTracking::Configuration {
|
||||
TaintFlowConf() { this = "qltest:taintFlowConf" }
|
||||
|
||||
override predicate isSource(DataFlow::Node n) {
|
||||
n.asExpr().(MethodAccess).getMethod().hasName("source")
|
||||
}
|
||||
|
||||
override predicate isSink(DataFlow::Node n) {
|
||||
n.asExpr().(Argument).getCall().getCallee().hasName("sink")
|
||||
}
|
||||
}
|
||||
|
||||
class HasFlowTest extends InlineExpectationsTest {
|
||||
HasFlowTest() { this = "HasFlowTest" }
|
||||
|
||||
override string getARelevantTag() { result = ["hasValueFlow", "hasTaintFlow"] }
|
||||
|
||||
override predicate hasActualResult(Location location, string element, string tag, string value) {
|
||||
tag = "hasValueFlow" and
|
||||
exists(DataFlow::Node src, DataFlow::Node sink, ValueFlowConf conf | conf.hasFlow(src, sink) |
|
||||
sink.getLocation() = location and
|
||||
element = sink.toString() and
|
||||
value = ""
|
||||
)
|
||||
or
|
||||
tag = "hasTaintFlow" and
|
||||
exists(DataFlow::Node src, DataFlow::Node sink, TaintFlowConf conf |
|
||||
conf.hasFlow(src, sink) and not any(ValueFlowConf c).hasFlow(src, sink)
|
||||
|
|
||||
sink.getLocation() = location and
|
||||
element = sink.toString() and
|
||||
value = ""
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
//semmle-extractor-options: --javac-args -cp ${testdir}/../../../stubs/playframework-2.6.x:${testdir}/../../../stubs/jackson-databind-2.10:${testdir}/../../../stubs/akka-2.6.x
|
||||
//semmle-extractor-options: --javac-args -cp ${testdir}/../../../stubs/playframework-2.6.x:${testdir}/../../../stubs/jackson-databind-2.12:${testdir}/../../../stubs/akka-2.6.x
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.fasterxml.jackson.core;
|
||||
|
||||
public abstract class JacksonException extends java.io.IOException {
|
||||
public abstract String getOriginalMessage();
|
||||
|
||||
public abstract Object getProcessor();
|
||||
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
* Jackson JSON-processor.
|
||||
*
|
||||
* Copyright (c) 2007- Tatu Saloranta, tatu.saloranta@iki.fi
|
||||
*/
|
||||
|
||||
package com.fasterxml.jackson.core;
|
||||
|
||||
public enum JsonEncoding {
|
||||
}
|
||||
@@ -0,0 +1,155 @@
|
||||
/*
|
||||
* Jackson JSON-processor.
|
||||
*
|
||||
* Copyright (c) 2007- Tatu Saloranta, tatu.saloranta@iki.fi
|
||||
*/
|
||||
package com.fasterxml.jackson.core;
|
||||
|
||||
import java.io.*;
|
||||
import java.net.URL;
|
||||
|
||||
public class JsonFactory implements java.io.Serializable // since 2.1 (for Android, mostly)
|
||||
{
|
||||
public JsonFactory copy() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public boolean canUseCharArrays() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean requiresCustomCodec() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public final JsonFactory configure(JsonGenerator.Feature f, boolean state) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonFactory enable(JsonGenerator.Feature f) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonFactory disable(JsonGenerator.Feature f) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonFactory setRootValueSeparator(String sep) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public String getRootValueSeparator() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonParser createParser(File f) throws IOException, JsonParseException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonParser createParser(URL url) throws IOException, JsonParseException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonParser createParser(InputStream in) throws IOException, JsonParseException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonParser createParser(Reader r) throws IOException, JsonParseException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonParser createParser(byte[] data) throws IOException, JsonParseException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonParser createParser(byte[] data, int offset, int len)
|
||||
throws IOException, JsonParseException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonParser createParser(String content) throws IOException, JsonParseException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonParser createParser(char[] content) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonParser createParser(char[] content, int offset, int len) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonParser createParser(DataInput in) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonParser createNonBlockingByteArrayParser() throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonGenerator createGenerator(OutputStream out, JsonEncoding enc) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonGenerator createGenerator(OutputStream out) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonGenerator createGenerator(Writer w) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonGenerator createGenerator(File f, JsonEncoding enc) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonGenerator createGenerator(DataOutput out, JsonEncoding enc) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonGenerator createGenerator(DataOutput out) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonParser createJsonParser(File f) throws IOException, JsonParseException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonParser createJsonParser(URL url) throws IOException, JsonParseException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonParser createJsonParser(InputStream in) throws IOException, JsonParseException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonParser createJsonParser(Reader r) throws IOException, JsonParseException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonParser createJsonParser(byte[] data) throws IOException, JsonParseException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonParser createJsonParser(byte[] data, int offset, int len)
|
||||
throws IOException, JsonParseException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonParser createJsonParser(String content) throws IOException, JsonParseException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonGenerator createJsonGenerator(OutputStream out, JsonEncoding enc) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonGenerator createJsonGenerator(Writer out) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonGenerator createJsonGenerator(OutputStream out) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Jackson JSON-processor.
|
||||
*
|
||||
* Copyright (c) 2007- Tatu Saloranta, tatu.saloranta@iki.fi
|
||||
*/
|
||||
|
||||
package com.fasterxml.jackson.core;
|
||||
|
||||
public class JsonGenerationException extends JsonProcessingException {
|
||||
public JsonGenerationException(Throwable rootCause) {}
|
||||
|
||||
public JsonGenerationException(String msg) {}
|
||||
|
||||
public JsonGenerationException(String msg, Throwable rootCause) {}
|
||||
|
||||
public JsonGenerationException(Throwable rootCause, JsonGenerator g) {}
|
||||
|
||||
public JsonGenerationException(String msg, JsonGenerator g) {}
|
||||
|
||||
public JsonGenerationException(String msg, Throwable rootCause, JsonGenerator g) {}
|
||||
|
||||
public JsonGenerationException withGenerator(JsonGenerator g) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JsonGenerator getProcessor() {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,226 @@
|
||||
/*
|
||||
* Jackson JSON-processor.
|
||||
*
|
||||
* Copyright (c) 2007- Tatu Saloranta, tatu.saloranta@iki.fi
|
||||
*/
|
||||
package com.fasterxml.jackson.core;
|
||||
|
||||
import java.io.*;
|
||||
import java.math.BigDecimal;
|
||||
import java.math.BigInteger;
|
||||
|
||||
public abstract class JsonGenerator implements Closeable, Flushable {
|
||||
public enum Feature {
|
||||
}
|
||||
|
||||
public Object getOutputTarget() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public Object getCurrentValue() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public void setCurrentValue(Object v) {}
|
||||
|
||||
public abstract JsonGenerator enable(Feature f);
|
||||
|
||||
public abstract JsonGenerator disable(Feature f);
|
||||
|
||||
public final JsonGenerator configure(Feature f, boolean state) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public abstract boolean isEnabled(Feature f);
|
||||
|
||||
public abstract int getFeatureMask();
|
||||
|
||||
public abstract JsonGenerator setFeatureMask(int values);
|
||||
|
||||
public JsonGenerator overrideStdFeatures(int values, int mask) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public int getFormatFeatures() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public JsonGenerator overrideFormatFeatures(int values, int mask) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public abstract JsonGenerator useDefaultPrettyPrinter();
|
||||
|
||||
public JsonGenerator setHighestNonEscapedChar(int charCode) {
|
||||
return this;
|
||||
}
|
||||
|
||||
public int getHighestEscapedChar() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public int getOutputBuffered() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public boolean canWriteObjectId() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean canWriteTypeId() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean canWriteBinaryNatively() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean canOmitFields() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean canWriteFormattedNumbers() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public abstract void writeStartArray() throws IOException;
|
||||
|
||||
public void writeStartArray(int size) throws IOException {}
|
||||
|
||||
public void writeStartArray(Object forValue) throws IOException {}
|
||||
|
||||
public void writeStartArray(Object forValue, int size) throws IOException {}
|
||||
|
||||
public abstract void writeEndArray() throws IOException;
|
||||
|
||||
public abstract void writeStartObject() throws IOException;
|
||||
|
||||
public void writeStartObject(Object forValue) throws IOException {}
|
||||
|
||||
public void writeStartObject(Object forValue, int size) throws IOException {}
|
||||
|
||||
public abstract void writeEndObject() throws IOException;
|
||||
|
||||
public abstract void writeFieldName(String name) throws IOException;
|
||||
|
||||
public void writeFieldId(long id) throws IOException {}
|
||||
|
||||
public void writeArray(int[] array, int offset, int length) throws IOException {}
|
||||
|
||||
public void writeArray(long[] array, int offset, int length) throws IOException {}
|
||||
|
||||
public void writeArray(double[] array, int offset, int length) throws IOException {}
|
||||
|
||||
public void writeArray(String[] array, int offset, int length) throws IOException {}
|
||||
|
||||
public abstract void writeString(String text) throws IOException;
|
||||
|
||||
public void writeString(Reader reader, int len) throws IOException {}
|
||||
|
||||
public abstract void writeString(char[] buffer, int offset, int len) throws IOException;
|
||||
|
||||
public abstract void writeRawUTF8String(byte[] buffer, int offset, int len) throws IOException;
|
||||
|
||||
public abstract void writeUTF8String(byte[] buffer, int offset, int len) throws IOException;
|
||||
|
||||
public abstract void writeRaw(String text) throws IOException;
|
||||
|
||||
public abstract void writeRaw(String text, int offset, int len) throws IOException;
|
||||
|
||||
public abstract void writeRaw(char[] text, int offset, int len) throws IOException;
|
||||
|
||||
public abstract void writeRaw(char c) throws IOException;
|
||||
|
||||
public abstract void writeRawValue(String text) throws IOException;
|
||||
|
||||
public abstract void writeRawValue(String text, int offset, int len) throws IOException;
|
||||
|
||||
public abstract void writeRawValue(char[] text, int offset, int len) throws IOException;
|
||||
|
||||
public void writeBinary(byte[] data, int offset, int len) throws IOException {}
|
||||
|
||||
public void writeBinary(byte[] data) throws IOException {}
|
||||
|
||||
public int writeBinary(InputStream data, int dataLength) throws IOException {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public void writeNumber(short v) throws IOException {
|
||||
writeNumber((int) v);
|
||||
}
|
||||
|
||||
public abstract void writeNumber(int v) throws IOException;
|
||||
|
||||
public abstract void writeNumber(long v) throws IOException;
|
||||
|
||||
public abstract void writeNumber(BigInteger v) throws IOException;
|
||||
|
||||
public abstract void writeNumber(double v) throws IOException;
|
||||
|
||||
public abstract void writeNumber(float v) throws IOException;
|
||||
|
||||
public abstract void writeNumber(BigDecimal v) throws IOException;
|
||||
|
||||
public abstract void writeNumber(String encodedValue) throws IOException;
|
||||
|
||||
public void writeNumber(char[] encodedValueBuffer, int offset, int len) throws IOException {}
|
||||
|
||||
public abstract void writeBoolean(boolean state) throws IOException;
|
||||
|
||||
public abstract void writeNull() throws IOException;
|
||||
|
||||
public void writeEmbeddedObject(Object object) throws IOException {}
|
||||
|
||||
public void writeObjectId(Object id) throws IOException {}
|
||||
|
||||
public void writeObjectRef(Object referenced) throws IOException {}
|
||||
|
||||
public void writeTypeId(Object id) throws IOException {}
|
||||
|
||||
public abstract void writeObject(Object pojo) throws IOException;
|
||||
|
||||
public abstract void writeTree(TreeNode rootNode) throws IOException;
|
||||
|
||||
public void writeBinaryField(String fieldName, byte[] data) throws IOException {}
|
||||
|
||||
public void writeBooleanField(String fieldName, boolean value) throws IOException {}
|
||||
|
||||
public void writeNullField(String fieldName) throws IOException {}
|
||||
|
||||
public void writeStringField(String fieldName, String value) throws IOException {}
|
||||
|
||||
public void writeNumberField(String fieldName, short value) throws IOException {}
|
||||
|
||||
public void writeNumberField(String fieldName, int value) throws IOException {}
|
||||
|
||||
public void writeNumberField(String fieldName, long value) throws IOException {}
|
||||
|
||||
public void writeNumberField(String fieldName, BigInteger value) throws IOException {}
|
||||
|
||||
public void writeNumberField(String fieldName, float value) throws IOException {}
|
||||
|
||||
public void writeNumberField(String fieldName, double value) throws IOException {}
|
||||
|
||||
public void writeNumberField(String fieldName, BigDecimal value) throws IOException {}
|
||||
|
||||
public void writeArrayFieldStart(String fieldName) throws IOException {}
|
||||
|
||||
public void writeObjectFieldStart(String fieldName) throws IOException {}
|
||||
|
||||
public void writeObjectField(String fieldName, Object pojo) throws IOException {}
|
||||
|
||||
public void writeOmittedField(String fieldName) throws IOException {}
|
||||
|
||||
public void copyCurrentEvent(JsonParser p) throws IOException {}
|
||||
|
||||
public void copyCurrentStructure(JsonParser p) throws IOException {}
|
||||
|
||||
@Override
|
||||
public abstract void flush() throws IOException;
|
||||
|
||||
public abstract boolean isClosed();
|
||||
|
||||
@Override
|
||||
public abstract void close() throws IOException;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
* Jackson JSON-processor.
|
||||
*
|
||||
* Copyright (c) 2007- Tatu Saloranta, tatu.saloranta@iki.fi
|
||||
*/
|
||||
|
||||
package com.fasterxml.jackson.core;
|
||||
|
||||
public class JsonParseException extends Exception {
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,246 @@
|
||||
/*
|
||||
* Jackson JSON-processor.
|
||||
*
|
||||
* Copyright (c) 2007- Tatu Saloranta, tatu.saloranta@iki.fi
|
||||
*/
|
||||
|
||||
package com.fasterxml.jackson.core;
|
||||
|
||||
import java.io.*;
|
||||
import java.math.BigDecimal;
|
||||
import java.math.BigInteger;
|
||||
import java.util.Iterator;
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
|
||||
public abstract class JsonParser implements Closeable {
|
||||
public enum NumberType {
|
||||
}
|
||||
|
||||
public Object getInputSource() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public Object getCurrentValue() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public void setCurrentValue(Object v) {}
|
||||
|
||||
public void setRequestPayloadOnError(byte[] payload, String charset) {}
|
||||
|
||||
public void setRequestPayloadOnError(String payload) {}
|
||||
|
||||
public boolean requiresCustomCodec() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean canParseAsync() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public abstract void close() throws IOException;
|
||||
|
||||
public abstract boolean isClosed();
|
||||
|
||||
public int releaseBuffered(OutputStream out) throws IOException {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public int releaseBuffered(Writer w) throws IOException {
|
||||
return -1;
|
||||
}
|
||||
|
||||
public JsonParser setFeatureMask(int mask) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonParser overrideStdFeatures(int values, int mask) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public int getFormatFeatures() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public JsonParser overrideFormatFeatures(int values, int mask) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public String nextFieldName() throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public String nextTextValue() throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public int nextIntValue(int defaultValue) throws IOException {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public long nextLongValue(long defaultValue) throws IOException {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public Boolean nextBooleanValue() throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public abstract JsonParser skipChildren() throws IOException;
|
||||
|
||||
public void finishToken() throws IOException {}
|
||||
|
||||
public int currentTokenId() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public abstract int getCurrentTokenId();
|
||||
|
||||
public abstract boolean hasCurrentToken();
|
||||
|
||||
public abstract boolean hasTokenId(int id);
|
||||
|
||||
public boolean isNaN() throws IOException {
|
||||
return false;
|
||||
}
|
||||
|
||||
public abstract void clearCurrentToken();
|
||||
|
||||
public abstract void overrideCurrentName(String name);
|
||||
|
||||
public abstract String getCurrentName() throws IOException;
|
||||
|
||||
public String currentName() throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public abstract String getText() throws IOException;
|
||||
|
||||
public int getText(Writer writer) throws IOException, UnsupportedOperationException {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public abstract char[] getTextCharacters() throws IOException;
|
||||
|
||||
public abstract int getTextLength() throws IOException;
|
||||
|
||||
public abstract int getTextOffset() throws IOException;
|
||||
|
||||
public abstract boolean hasTextCharacters();
|
||||
|
||||
public abstract Number getNumberValue() throws IOException;
|
||||
|
||||
public abstract NumberType getNumberType() throws IOException;
|
||||
|
||||
public byte getByteValue() throws IOException {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public short getShortValue() throws IOException {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public abstract int getIntValue() throws IOException;
|
||||
|
||||
public abstract long getLongValue() throws IOException;
|
||||
|
||||
public abstract BigInteger getBigIntegerValue() throws IOException;
|
||||
|
||||
public abstract float getFloatValue() throws IOException;
|
||||
|
||||
public abstract double getDoubleValue() throws IOException;
|
||||
|
||||
public abstract BigDecimal getDecimalValue() throws IOException;
|
||||
|
||||
public boolean getBooleanValue() throws IOException {
|
||||
return false;
|
||||
}
|
||||
|
||||
public Object getEmbeddedObject() throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public byte[] getBinaryValue() throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public int readBinaryValue(OutputStream out) throws IOException {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public int getValueAsInt() throws IOException {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public int getValueAsInt(int def) throws IOException {
|
||||
return def;
|
||||
}
|
||||
|
||||
public long getValueAsLong() throws IOException {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public long getValueAsLong(long def) throws IOException {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public double getValueAsDouble() throws IOException {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public double getValueAsDouble(double def) throws IOException {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public boolean getValueAsBoolean() throws IOException {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean getValueAsBoolean(boolean def) throws IOException {
|
||||
return false;
|
||||
}
|
||||
|
||||
public String getValueAsString() throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public abstract String getValueAsString(String def) throws IOException;
|
||||
|
||||
public boolean canReadObjectId() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean canReadTypeId() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public Object getObjectId() throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public Object getTypeId() throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValueAs(Class<T> valueType) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValueAs(TypeReference<?> valueTypeRef) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> Iterator<T> readValuesAs(Class<T> valueType) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> Iterator<T> readValuesAs(TypeReference<T> valueTypeRef) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T extends TreeNode> T readValueAsTree() throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Jackson JSON-processor.
|
||||
*
|
||||
* Copyright (c) 2007- Tatu Saloranta, tatu.saloranta@iki.fi
|
||||
*/
|
||||
|
||||
package com.fasterxml.jackson.core;
|
||||
|
||||
public class JsonProcessingException extends JacksonException {
|
||||
|
||||
public void clearLocation() {}
|
||||
|
||||
@Override
|
||||
public String getOriginalMessage() {
|
||||
return super.getMessage();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getProcessor() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getMessage() {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Jackson JSON-processor.
|
||||
*
|
||||
* Copyright (c) 2007- Tatu Saloranta, tatu.saloranta@iki.fi
|
||||
*/
|
||||
|
||||
package com.fasterxml.jackson.core;
|
||||
|
||||
import java.util.Iterator;
|
||||
|
||||
public interface TreeNode {
|
||||
JsonParser.NumberType numberType();
|
||||
|
||||
int size();
|
||||
|
||||
boolean isValueNode();
|
||||
|
||||
boolean isContainerNode();
|
||||
|
||||
boolean isMissingNode();
|
||||
|
||||
boolean isArray();
|
||||
|
||||
boolean isObject();
|
||||
|
||||
TreeNode get(String fieldName);
|
||||
|
||||
TreeNode get(int index);
|
||||
|
||||
TreeNode path(String fieldName);
|
||||
|
||||
TreeNode path(int index);
|
||||
|
||||
Iterator<String> fieldNames();
|
||||
|
||||
TreeNode at(String jsonPointerExpression) throws IllegalArgumentException;
|
||||
|
||||
JsonParser traverse();
|
||||
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
package com.fasterxml.jackson.core.type;
|
||||
|
||||
public abstract class ResolvedType {
|
||||
public abstract Class<?> getRawClass();
|
||||
|
||||
public abstract boolean hasRawClass(Class<?> clz);
|
||||
|
||||
public abstract boolean isAbstract();
|
||||
|
||||
public abstract boolean isConcrete();
|
||||
|
||||
public abstract boolean isThrowable();
|
||||
|
||||
public abstract boolean isArrayType();
|
||||
|
||||
public abstract boolean isEnumType();
|
||||
|
||||
public abstract boolean isInterface();
|
||||
|
||||
public abstract boolean isPrimitive();
|
||||
|
||||
public abstract boolean isFinal();
|
||||
|
||||
public abstract boolean isContainerType();
|
||||
|
||||
public abstract boolean isCollectionLikeType();
|
||||
|
||||
public boolean isReferenceType() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public abstract boolean isMapLikeType();
|
||||
|
||||
public abstract boolean hasGenericTypes();
|
||||
|
||||
public Class<?> getParameterSource() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public abstract ResolvedType getKeyType();
|
||||
|
||||
public abstract ResolvedType getContentType();
|
||||
|
||||
public abstract ResolvedType getReferencedType();
|
||||
|
||||
public abstract int containedTypeCount();
|
||||
|
||||
public abstract ResolvedType containedType(int index);
|
||||
|
||||
public abstract String containedTypeName(int index);
|
||||
|
||||
public abstract String toCanonical();
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.fasterxml.jackson.core.type;
|
||||
|
||||
import java.lang.reflect.Type;
|
||||
|
||||
public abstract class TypeReference<T> implements Comparable<TypeReference<T>> {
|
||||
public Type getType() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int compareTo(TypeReference<T> o) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
package com.fasterxml.jackson.core;
|
||||
|
||||
public class JsonEncoding {}
|
||||
@@ -1,12 +0,0 @@
|
||||
package com.fasterxml.jackson.core;
|
||||
|
||||
import java.io.Writer;
|
||||
|
||||
public class JsonFactory {
|
||||
public JsonFactory() {
|
||||
}
|
||||
|
||||
public JsonGenerator createGenerator(Writer writer) {
|
||||
return new JsonGenerator();
|
||||
}
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
package com.fasterxml.jackson.core;
|
||||
|
||||
public class JsonGenerator {
|
||||
protected JsonGenerator() {
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
package com.fasterxml.jackson.databind;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
public abstract class JsonNode implements Iterable<JsonNode> {
|
||||
public JsonNode() {
|
||||
}
|
||||
}
|
||||
@@ -1,41 +0,0 @@
|
||||
package com.fasterxml.jackson.databind;
|
||||
|
||||
import java.io.*;
|
||||
import java.util.*;
|
||||
|
||||
public class ObjectMapper {
|
||||
public ObjectMapper() {
|
||||
}
|
||||
|
||||
public void writeValue(File resultFile, Object value) {
|
||||
}
|
||||
|
||||
public void writeValue(com.fasterxml.jackson.core.JsonGenerator jgen, Object value) {
|
||||
}
|
||||
|
||||
public void writeValue(OutputStream out, Object value) {
|
||||
}
|
||||
|
||||
public void writeValue(Writer w, Object value) {
|
||||
}
|
||||
|
||||
public byte[] writeValueAsBytes(Object value) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public String writeValueAsString(Object value) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectReader readerFor(Class<?> type) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T extends JsonNode> T valueToTree(Object fromValue) throws IllegalArgumentException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T convertValue(Object fromValue, Class<T> toValueType) throws IllegalArgumentException {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -1,82 +0,0 @@
|
||||
package com.fasterxml.jackson.databind;
|
||||
|
||||
import java.io.*;
|
||||
|
||||
public class ObjectReader {
|
||||
public ObjectReader forType(Class<?> valueType) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(String src) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(String src, Class<T> valueType) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(byte[] content) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(byte[] content, Class<T> valueType) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(File src) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(InputStream src) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(InputStream src, Class<T> valueType) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(Reader src) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(Reader src, Class<T> valueType) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> MappingIterator<T> readValues(String src) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> MappingIterator<T> readValues(String src, Class<T> valueType) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> MappingIterator<T> readValues(byte[] content) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> MappingIterator<T> readValues(byte[] content, Class<T> valueType) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> MappingIterator<T> readValues(File src) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> MappingIterator<T> readValues(InputStream src) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> MappingIterator<T> readValues(InputStream src, Class<T> valueType) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> MappingIterator<T> readValues(Reader src) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> MappingIterator<T> readValues(Reader src, Class<T> valueType) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,29 +0,0 @@
|
||||
package com.fasterxml.jackson.databind;
|
||||
|
||||
import java.io.*;
|
||||
import java.util.*;
|
||||
|
||||
public class ObjectWriter {
|
||||
public ObjectWriter() {
|
||||
}
|
||||
|
||||
public void writeValue(File resultFile, Object value) {
|
||||
}
|
||||
|
||||
public void writeValue(com.fasterxml.jackson.core.JsonGenerator jgen, Object value) {
|
||||
}
|
||||
|
||||
public void writeValue(OutputStream out, Object value) {
|
||||
}
|
||||
|
||||
public void writeValue(Writer w, Object value) {
|
||||
}
|
||||
|
||||
public byte[] writeValueAsBytes(Object value) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public String writeValueAsString(Object value) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,213 @@
|
||||
package com.fasterxml.jackson.databind;
|
||||
|
||||
import java.util.List;
|
||||
import com.fasterxml.jackson.core.type.ResolvedType;
|
||||
|
||||
public abstract class JavaType extends ResolvedType implements java.io.Serializable, // 2.1
|
||||
java.lang.reflect.Type // 2.2
|
||||
{
|
||||
public abstract JavaType withTypeHandler(Object h);
|
||||
|
||||
public abstract JavaType withContentTypeHandler(Object h);
|
||||
|
||||
public abstract JavaType withValueHandler(Object h);
|
||||
|
||||
public abstract JavaType withContentValueHandler(Object h);
|
||||
|
||||
public JavaType withHandlersFrom(JavaType src) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public abstract JavaType withContentType(JavaType contentType);
|
||||
|
||||
public abstract JavaType withStaticTyping();
|
||||
|
||||
public JavaType forcedNarrowBy(Class<?> subclass) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final Class<?> getRawClass() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final boolean hasRawClass(Class<?> clz) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean hasContentType() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public final boolean isTypeOrSubTypeOf(Class<?> clz) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public final boolean isTypeOrSuperTypeOf(Class<?> clz) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isAbstract() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isConcrete() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isThrowable() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isArrayType() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final boolean isEnumType() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public final boolean isEnumImplType() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public final boolean isRecordType() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final boolean isInterface() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final boolean isPrimitive() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final boolean isFinal() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public abstract boolean isContainerType();
|
||||
|
||||
@Override
|
||||
public boolean isCollectionLikeType() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isMapLikeType() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public final boolean isJavaLangObject() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public final boolean useStaticType() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasGenericTypes() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JavaType getKeyType() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JavaType getContentType() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JavaType getReferencedType() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public abstract int containedTypeCount();
|
||||
|
||||
@Override
|
||||
public abstract JavaType containedType(int index);
|
||||
|
||||
@Override
|
||||
public abstract String containedTypeName(int index);
|
||||
|
||||
@Override
|
||||
public Class<?> getParameterSource() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JavaType containedTypeOrUnknown(int index) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public abstract JavaType findSuperType(Class<?> erasedTarget);
|
||||
|
||||
public abstract JavaType getSuperClass();
|
||||
|
||||
public abstract List<JavaType> getInterfaces();
|
||||
|
||||
public abstract JavaType[] findTypeParameters(Class<?> expType);
|
||||
|
||||
public <T> T getValueHandler() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T getTypeHandler() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public Object getContentValueHandler() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public Object getContentTypeHandler() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean hasValueHandler() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean hasHandlers() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public String getGenericSignature() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public abstract StringBuilder getGenericSignature(StringBuilder sb);
|
||||
|
||||
public String getErasedSignature() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public abstract StringBuilder getErasedSignature(StringBuilder sb);
|
||||
|
||||
@Override
|
||||
public abstract String toString();
|
||||
|
||||
@Override
|
||||
public abstract boolean equals(Object o);
|
||||
|
||||
@Override
|
||||
public final int hashCode() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,119 @@
|
||||
package com.fasterxml.jackson.databind;
|
||||
|
||||
import java.io.Closeable;
|
||||
import java.io.IOException;
|
||||
import java.io.Serializable;
|
||||
import java.util.*;
|
||||
import com.fasterxml.jackson.core.*;
|
||||
|
||||
public class JsonMappingException extends JsonProcessingException {
|
||||
public static class Reference implements Serializable {
|
||||
public Reference(Object from) {}
|
||||
|
||||
public Reference(Object from, String fieldName) {}
|
||||
|
||||
public Reference(Object from, int index) {}
|
||||
|
||||
public Object getFrom() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public String getFieldName() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public int getIndex() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public JsonMappingException(String msg) {}
|
||||
|
||||
public JsonMappingException(String msg, Throwable rootCause) {}
|
||||
|
||||
public JsonMappingException(Closeable processor, String msg) {}
|
||||
|
||||
public JsonMappingException(Closeable processor, String msg, Throwable problem) {}
|
||||
|
||||
public static JsonMappingException from(JsonParser p, String msg) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static JsonMappingException from(JsonParser p, String msg, Throwable problem) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static JsonMappingException from(JsonGenerator g, String msg) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static JsonMappingException from(JsonGenerator g, String msg, Throwable problem) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static JsonMappingException fromUnexpectedIOE(IOException src) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static JsonMappingException wrapWithPath(Throwable src, Object refFrom,
|
||||
String refFieldName) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static JsonMappingException wrapWithPath(Throwable src, Object refFrom, int index) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static JsonMappingException wrapWithPath(Throwable src, Reference ref) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public List<Reference> getPath() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public String getPathReference() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public StringBuilder getPathReference(StringBuilder sb) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public void prependPath(Object referrer, String fieldName) {}
|
||||
|
||||
public void prependPath(Object referrer, int index) {}
|
||||
|
||||
public void prependPath(Reference r) {}
|
||||
|
||||
@Override
|
||||
public Object getProcessor() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getLocalizedMessage() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getMessage() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,319 @@
|
||||
package com.fasterxml.jackson.databind;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.math.BigDecimal;
|
||||
import java.math.BigInteger;
|
||||
import java.util.*;
|
||||
import com.fasterxml.jackson.core.*;
|
||||
|
||||
public abstract class JsonNode implements TreeNode, Iterable<JsonNode> {
|
||||
public abstract <T extends JsonNode> T deepCopy();
|
||||
|
||||
@Override
|
||||
public int size() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public boolean isEmpty() {
|
||||
return size() == 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final boolean isValueNode() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final boolean isContainerNode() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isMissingNode() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isArray() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isObject() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public abstract JsonNode get(int index);
|
||||
|
||||
@Override
|
||||
public JsonNode get(String fieldName) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public abstract JsonNode path(String fieldName);
|
||||
|
||||
@Override
|
||||
public abstract JsonNode path(int index);
|
||||
|
||||
@Override
|
||||
public Iterator<String> fieldNames() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final JsonNode at(String jsonPtrExpr) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public final boolean isPojo() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public final boolean isNumber() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean isIntegralNumber() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean isFloatingPointNumber() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean isShort() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean isInt() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean isLong() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean isFloat() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean isDouble() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean isBigDecimal() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean isBigInteger() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public final boolean isTextual() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public final boolean isBoolean() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public final boolean isNull() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public final boolean isBinary() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean canConvertToInt() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean canConvertToLong() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean canConvertToExactIntegral() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public String textValue() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public byte[] binaryValue() throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public boolean booleanValue() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public Number numberValue() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public short shortValue() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public int intValue() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public long longValue() {
|
||||
return 0L;
|
||||
}
|
||||
|
||||
public float floatValue() {
|
||||
return 0.0f;
|
||||
}
|
||||
|
||||
public double doubleValue() {
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
public BigDecimal decimalValue() {
|
||||
return BigDecimal.ZERO;
|
||||
}
|
||||
|
||||
public BigInteger bigIntegerValue() {
|
||||
return BigInteger.ZERO;
|
||||
}
|
||||
|
||||
public abstract String asText();
|
||||
|
||||
public String asText(String defaultValue) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public int asInt() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public int asInt(int defaultValue) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public long asLong() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public long asLong(long defaultValue) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public double asDouble() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public double asDouble(double defaultValue) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public boolean asBoolean() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean asBoolean(boolean defaultValue) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public <T extends JsonNode> T require() throws IllegalArgumentException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T extends JsonNode> T requireNonNull() throws IllegalArgumentException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonNode required(String propertyName) throws IllegalArgumentException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonNode required(int index) throws IllegalArgumentException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonNode requiredAt(String pathExpr) throws IllegalArgumentException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public boolean has(String fieldName) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean has(int index) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean hasNonNull(String fieldName) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean hasNonNull(int index) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final Iterator<JsonNode> iterator() {
|
||||
return elements();
|
||||
}
|
||||
|
||||
public Iterator<JsonNode> elements() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public Iterator<Map.Entry<String, JsonNode>> fields() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public abstract JsonNode findValue(String fieldName);
|
||||
|
||||
public final List<JsonNode> findValues(String fieldName) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public final List<String> findValuesAsText(String fieldName) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public abstract JsonNode findPath(String fieldName);
|
||||
|
||||
public abstract JsonNode findParent(String fieldName);
|
||||
|
||||
public final List<JsonNode> findParents(String fieldName) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public abstract List<JsonNode> findValues(String fieldName, List<JsonNode> foundSoFar);
|
||||
|
||||
public abstract List<String> findValuesAsText(String fieldName, List<String> foundSoFar);
|
||||
|
||||
public abstract List<JsonNode> findParents(String fieldName, List<JsonNode> foundSoFar);
|
||||
|
||||
public <T extends JsonNode> T with(String propertyName) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T extends JsonNode> T withArray(String propertyName) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public boolean equals(Comparator<JsonNode> comparator, JsonNode other) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public abstract String toString();
|
||||
|
||||
public String toPrettyString() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public abstract boolean equals(Object o);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,590 @@
|
||||
package com.fasterxml.jackson.databind;
|
||||
|
||||
import java.io.*;
|
||||
import java.lang.reflect.Type;
|
||||
import java.net.URL;
|
||||
import java.text.DateFormat;
|
||||
import java.util.*;
|
||||
import java.util.concurrent.atomic.AtomicReference;
|
||||
import com.fasterxml.jackson.core.*;
|
||||
import com.fasterxml.jackson.core.type.ResolvedType;
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
|
||||
public class ObjectMapper implements java.io.Serializable // as of 2.1
|
||||
{
|
||||
public enum DefaultTyping {
|
||||
}
|
||||
public static class DefaultTypeResolverBuilder implements java.io.Serializable {
|
||||
public DefaultTypeResolverBuilder(DefaultTyping t) {}
|
||||
|
||||
public boolean useForType(JavaType t) {
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public ObjectMapper() {}
|
||||
|
||||
public ObjectMapper(JsonFactory jf) {}
|
||||
|
||||
public ObjectMapper copy() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectMapper registerModule(Module module) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectMapper registerModules(Module... modules) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectMapper registerModules(Iterable<? extends Module> modules) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public Set<Object> getRegisteredModuleIds() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static List<Module> findModules() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static List<Module> findModules(ClassLoader classLoader) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectMapper findAndRegisterModules() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonGenerator createGenerator(OutputStream out) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonGenerator createGenerator(OutputStream out, JsonEncoding enc) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonGenerator createGenerator(Writer w) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonGenerator createGenerator(File outputFile, JsonEncoding enc) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonGenerator createGenerator(DataOutput out) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonParser createParser(File src) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonParser createParser(URL src) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonParser createParser(InputStream in) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonParser createParser(Reader r) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonParser createParser(byte[] content) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonParser createParser(byte[] content, int offset, int len) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonParser createParser(String content) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonParser createParser(char[] content) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonParser createParser(char[] content, int offset, int len) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonParser createParser(DataInput content) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonParser createNonBlockingByteArrayParser() throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectMapper setMixIns(Map<Class<?>, Class<?>> sourceMixins) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectMapper addMixIn(Class<?> target, Class<?> mixinSource) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public Class<?> findMixInClassFor(Class<?> cls) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public int mixInCount() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public void setMixInAnnotations(Map<Class<?>, Class<?>> sourceMixins) {}
|
||||
|
||||
public final void addMixInAnnotations(Class<?> target, Class<?> mixinSource) {}
|
||||
|
||||
public ObjectMapper setDefaultMergeable(Boolean b) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectMapper setDefaultLeniency(Boolean b) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public void registerSubtypes(Class<?>... classes) {}
|
||||
|
||||
public void registerSubtypes(Collection<Class<?>> subtypes) {}
|
||||
|
||||
public ObjectMapper deactivateDefaultTyping() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectMapper enableDefaultTyping() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectMapper enableDefaultTyping(DefaultTyping dti) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectMapper enableDefaultTypingAsProperty(DefaultTyping applicability,
|
||||
String propertyName) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectMapper disableDefaultTyping() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JavaType constructType(Type t) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JavaType constructType(TypeReference<?> typeRef) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonFactory tokenStreamFactory() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonFactory getFactory() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonFactory getJsonFactory() {
|
||||
return getFactory();
|
||||
}
|
||||
|
||||
public ObjectMapper setDateFormat(DateFormat dateFormat) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public DateFormat getDateFormat() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectMapper setLocale(Locale l) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectMapper setTimeZone(TimeZone tz) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public boolean isEnabled(JsonGenerator.Feature f) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public ObjectMapper configure(JsonGenerator.Feature f, boolean state) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectMapper enable(JsonGenerator.Feature... features) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectMapper disable(JsonGenerator.Feature... features) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(JsonParser p, Class<T> valueType)
|
||||
throws IOException, JsonParseException, JsonMappingException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(JsonParser p, TypeReference<T> valueTypeRef)
|
||||
throws IOException, JsonParseException, JsonMappingException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public final <T> T readValue(JsonParser p, ResolvedType valueType)
|
||||
throws IOException, JsonParseException, JsonMappingException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(JsonParser p, JavaType valueType)
|
||||
throws IOException, JsonParseException, JsonMappingException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T extends TreeNode> T readTree(JsonParser p) throws IOException, JsonProcessingException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> MappingIterator<T> readValues(JsonParser p, ResolvedType valueType)
|
||||
throws IOException, JsonProcessingException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> MappingIterator<T> readValues(JsonParser p, JavaType valueType)
|
||||
throws IOException, JsonProcessingException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> MappingIterator<T> readValues(JsonParser p, Class<T> valueType)
|
||||
throws IOException, JsonProcessingException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> MappingIterator<T> readValues(JsonParser p, TypeReference<T> valueTypeRef)
|
||||
throws IOException, JsonProcessingException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonNode readTree(InputStream in) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonNode readTree(Reader r) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonNode readTree(String content) throws JsonProcessingException, JsonMappingException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonNode readTree(byte[] content) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonNode readTree(byte[] content, int offset, int len) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonNode readTree(File file) throws IOException, JsonProcessingException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonNode readTree(URL source) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public void writeValue(JsonGenerator g, Object value)
|
||||
throws IOException, JsonGenerationException, JsonMappingException {}
|
||||
|
||||
public void writeTree(JsonGenerator g, TreeNode rootNode)
|
||||
throws IOException, JsonProcessingException {}
|
||||
|
||||
public void writeTree(JsonGenerator g, JsonNode rootNode)
|
||||
throws IOException, JsonProcessingException {}
|
||||
|
||||
public JsonNode missingNode() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonNode nullNode() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonParser treeAsTokens(TreeNode n) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T treeToValue(TreeNode n, Class<T> valueType)
|
||||
throws IllegalArgumentException, JsonProcessingException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T extends JsonNode> T valueToTree(Object fromValue) throws IllegalArgumentException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public boolean canSerialize(Class<?> type) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean canSerialize(Class<?> type, AtomicReference<Throwable> cause) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean canDeserialize(JavaType type) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean canDeserialize(JavaType type, AtomicReference<Throwable> cause) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public <T> T readValue(File src, Class<T> valueType)
|
||||
throws IOException, JsonParseException, JsonMappingException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(File src, TypeReference<T> valueTypeRef)
|
||||
throws IOException, JsonParseException, JsonMappingException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(File src, JavaType valueType)
|
||||
throws IOException, JsonParseException, JsonMappingException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(URL src, Class<T> valueType)
|
||||
throws IOException, JsonParseException, JsonMappingException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(URL src, TypeReference<T> valueTypeRef)
|
||||
throws IOException, JsonParseException, JsonMappingException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(URL src, JavaType valueType)
|
||||
throws IOException, JsonParseException, JsonMappingException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(String content, Class<T> valueType)
|
||||
throws JsonProcessingException, JsonMappingException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(String content, TypeReference<T> valueTypeRef)
|
||||
throws JsonProcessingException, JsonMappingException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(String content, JavaType valueType)
|
||||
throws JsonProcessingException, JsonMappingException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(Reader src, Class<T> valueType)
|
||||
throws IOException, JsonParseException, JsonMappingException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(Reader src, TypeReference<T> valueTypeRef)
|
||||
throws IOException, JsonParseException, JsonMappingException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(Reader src, JavaType valueType)
|
||||
throws IOException, JsonParseException, JsonMappingException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(InputStream src, Class<T> valueType)
|
||||
throws IOException, JsonParseException, JsonMappingException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(InputStream src, TypeReference<T> valueTypeRef)
|
||||
throws IOException, JsonParseException, JsonMappingException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(InputStream src, JavaType valueType)
|
||||
throws IOException, JsonParseException, JsonMappingException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(byte[] src, Class<T> valueType)
|
||||
throws IOException, JsonParseException, JsonMappingException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(byte[] src, int offset, int len, Class<T> valueType)
|
||||
throws IOException, JsonParseException, JsonMappingException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(byte[] src, TypeReference<T> valueTypeRef)
|
||||
throws IOException, JsonParseException, JsonMappingException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(byte[] src, int offset, int len, TypeReference<T> valueTypeRef)
|
||||
throws IOException, JsonParseException, JsonMappingException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(byte[] src, JavaType valueType)
|
||||
throws IOException, JsonParseException, JsonMappingException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(byte[] src, int offset, int len, JavaType valueType)
|
||||
throws IOException, JsonParseException, JsonMappingException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(DataInput src, Class<T> valueType) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(DataInput src, JavaType valueType) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public void writeValue(File resultFile, Object value)
|
||||
throws IOException, JsonGenerationException, JsonMappingException {}
|
||||
|
||||
public void writeValue(OutputStream out, Object value)
|
||||
throws IOException, JsonGenerationException, JsonMappingException {}
|
||||
|
||||
public void writeValue(DataOutput out, Object value) throws IOException {}
|
||||
|
||||
public void writeValue(Writer w, Object value)
|
||||
throws IOException, JsonGenerationException, JsonMappingException {}
|
||||
|
||||
public String writeValueAsString(Object value) throws JsonProcessingException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public byte[] writeValueAsBytes(Object value) throws JsonProcessingException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectWriter writer() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectWriter writer(DateFormat df) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectWriter writerWithView(Class<?> serializationView) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectWriter writerFor(Class<?> rootType) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectWriter writerFor(TypeReference<?> rootType) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectWriter writerFor(JavaType rootType) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
public ObjectWriter writerWithDefaultPrettyPrinter() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectWriter writerWithType(Class<?> rootType) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectWriter writerWithType(TypeReference<?> rootType) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectWriter writerWithType(JavaType rootType) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectReader reader() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectReader readerForUpdating(Object valueToUpdate) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectReader readerFor(JavaType type) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectReader readerFor(Class<?> type) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectReader readerFor(TypeReference<?> type) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectReader readerForArrayOf(Class<?> type) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectReader readerForListOf(Class<?> type) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectReader readerForMapOf(Class<?> type) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
public ObjectReader readerWithView(Class<?> view) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectReader reader(JavaType type) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectReader reader(Class<?> type) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectReader reader(TypeReference<?> type) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T convertValue(Object fromValue, Class<T> toValueType)
|
||||
throws IllegalArgumentException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T convertValue(Object fromValue, TypeReference<T> toValueTypeRef)
|
||||
throws IllegalArgumentException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T convertValue(Object fromValue, JavaType toValueType)
|
||||
throws IllegalArgumentException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T updateValue(T valueToUpdate, Object overrides) throws JsonMappingException {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,313 @@
|
||||
package com.fasterxml.jackson.databind;
|
||||
|
||||
import java.io.*;
|
||||
import java.net.URL;
|
||||
import java.util.*;
|
||||
import com.fasterxml.jackson.core.*;
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
|
||||
public class ObjectReader implements java.io.Serializable // since 2.1
|
||||
{
|
||||
|
||||
public ObjectReader with(JsonFactory f) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectReader withRootName(String rootName) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
public ObjectReader withoutRootName() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectReader forType(JavaType valueType) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectReader forType(Class<?> valueType) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectReader forType(TypeReference<?> valueTypeRef) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectReader withType(JavaType valueType) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectReader withType(Class<?> valueType) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectReader withType(java.lang.reflect.Type valueType) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectReader withType(TypeReference<?> valueTypeRef) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectReader withValueToUpdate(Object value) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectReader withView(Class<?> activeView) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectReader with(Locale l) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectReader with(TimeZone tz) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
public ObjectReader withFormatDetection(ObjectReader... readers) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
public ObjectReader withAttributes(Map<?, ?> attrs) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectReader withAttribute(Object key, Object value) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectReader withoutAttribute(Object key) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
public JavaType getValueType() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonParser createParser(File src) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonParser createParser(URL src) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonParser createParser(InputStream in) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonParser createParser(Reader r) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonParser createParser(byte[] content) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonParser createParser(byte[] content, int offset, int len) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonParser createParser(String content) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonParser createParser(char[] content) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonParser createParser(char[] content, int offset, int len) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonParser createParser(DataInput content) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonParser createNonBlockingByteArrayParser() throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(JsonParser p) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(JsonParser p, JavaType valueType) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> Iterator<T> readValues(JsonParser p, JavaType valueType) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonNode createArrayNode() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonNode createObjectNode() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonNode missingNode() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonNode nullNode() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonParser treeAsTokens(TreeNode n) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T extends TreeNode> T readTree(JsonParser p) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public void writeTree(JsonGenerator g, TreeNode rootNode) {}
|
||||
|
||||
public <T> T readValue(InputStream src) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(InputStream src, Class<T> valueType) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(Reader src) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(Reader src, Class<T> valueType) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(String src) throws JsonProcessingException, JsonMappingException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(String src, Class<T> valueType) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(byte[] content) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(byte[] content, Class<T> valueType) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(byte[] buffer, int offset, int length) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(byte[] buffer, int offset, int length, Class<T> valueType)
|
||||
throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(File src) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(File src, Class<T> valueType) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(URL src) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(URL src, Class<T> valueType) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(JsonNode content) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(JsonNode content, Class<T> valueType) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(DataInput src) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T readValue(DataInput content, Class<T> valueType) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonNode readTree(InputStream src) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonNode readTree(Reader src) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonNode readTree(String json) throws JsonProcessingException, JsonMappingException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonNode readTree(byte[] json) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonNode readTree(byte[] json, int offset, int len) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonNode readTree(DataInput src) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> MappingIterator<T> readValues(JsonParser p) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> MappingIterator<T> readValues(InputStream src) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> MappingIterator<T> readValues(Reader src) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> MappingIterator<T> readValues(String json) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> MappingIterator<T> readValues(byte[] src, int offset, int length) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public final <T> MappingIterator<T> readValues(byte[] src) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> MappingIterator<T> readValues(File src) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> MappingIterator<T> readValues(URL src) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> MappingIterator<T> readValues(DataInput src) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T treeToValue(TreeNode n, Class<T> valueType) throws JsonProcessingException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public void writeValue(JsonGenerator gen, Object value) throws IOException {}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,181 @@
|
||||
package com.fasterxml.jackson.databind;
|
||||
|
||||
import java.io.*;
|
||||
import java.text.*;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
import java.util.TimeZone;
|
||||
import java.util.concurrent.atomic.AtomicReference;
|
||||
import com.fasterxml.jackson.core.*;
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
|
||||
public class ObjectWriter implements java.io.Serializable // since 2.1
|
||||
{
|
||||
public ObjectWriter with(JsonGenerator.Feature feature) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectWriter withFeatures(JsonGenerator.Feature... features) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectWriter without(JsonGenerator.Feature feature) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectWriter withoutFeatures(JsonGenerator.Feature... features) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectWriter forType(JavaType rootType) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectWriter forType(Class<?> rootType) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectWriter forType(TypeReference<?> rootType) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectWriter withType(JavaType rootType) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectWriter withType(Class<?> rootType) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectWriter withType(TypeReference<?> rootType) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectWriter with(DateFormat df) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectWriter withDefaultPrettyPrinter() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectWriter withRootName(String rootName) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectWriter withoutRootName() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectWriter withView(Class<?> view) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectWriter with(Locale l) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectWriter with(TimeZone tz) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectWriter with(JsonFactory f) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectWriter withAttributes(Map<?, ?> attrs) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectWriter withAttribute(Object key, Object value) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectWriter withoutAttribute(Object key) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ObjectWriter withRootValueSeparator(String sep) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonGenerator createGenerator(OutputStream out) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonGenerator createGenerator(OutputStream out, JsonEncoding enc) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonGenerator createGenerator(Writer w) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonGenerator createGenerator(File outputFile, JsonEncoding enc) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonGenerator createGenerator(DataOutput out) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public boolean isEnabled(JsonGenerator.Feature f) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public JsonFactory getFactory() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public boolean hasPrefetchedSerializer() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public void writeValue(JsonGenerator g, Object value) throws IOException {}
|
||||
|
||||
public void writeValue(File resultFile, Object value)
|
||||
throws IOException, JsonGenerationException, JsonMappingException {}
|
||||
|
||||
public void writeValue(OutputStream out, Object value)
|
||||
throws IOException, JsonGenerationException, JsonMappingException {}
|
||||
|
||||
public void writeValue(Writer w, Object value)
|
||||
throws IOException, JsonGenerationException, JsonMappingException {}
|
||||
|
||||
public void writeValue(DataOutput out, Object value) throws IOException {}
|
||||
|
||||
public String writeValueAsString(Object value) throws JsonProcessingException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public byte[] writeValueAsBytes(Object value) throws JsonProcessingException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public boolean canSerialize(Class<?> type) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean canSerialize(Class<?> type, AtomicReference<Throwable> cause) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public final static class GeneratorSettings implements java.io.Serializable {
|
||||
public GeneratorSettings withRootValueSeparator(String sep) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public void initialize(JsonGenerator gen) {}
|
||||
|
||||
}
|
||||
public final static class Prefetch implements java.io.Serializable {
|
||||
|
||||
public Prefetch forRootType(ObjectWriter parent, JavaType newType) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public boolean hasSerializer() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user