src.org.codehaus.jackson.util.JsonGeneratorDelegate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of worldwindx Show documentation
Show all versions of worldwindx Show documentation
World Wind is a collection of components that interactively display 3D geographic information within Java applications or applets.
package org.codehaus.jackson.util;
import java.io.IOException;
import java.math.BigDecimal;
import java.math.BigInteger;
import org.codehaus.jackson.Base64Variant;
import org.codehaus.jackson.JsonGenerationException;
import org.codehaus.jackson.JsonGenerator;
import org.codehaus.jackson.JsonNode;
import org.codehaus.jackson.JsonParser;
import org.codehaus.jackson.JsonProcessingException;
import org.codehaus.jackson.JsonStreamContext;
import org.codehaus.jackson.ObjectCodec;
public class JsonGeneratorDelegate extends JsonGenerator
{
/**
* Delegate object that method calls are delegated to.
*/
protected JsonGenerator delegate;
public JsonGeneratorDelegate(JsonGenerator d) {
delegate = d;
}
@Override
public void close() throws IOException {
delegate.close();
}
@Override
public void copyCurrentEvent(JsonParser jp) throws IOException, JsonProcessingException {
delegate.copyCurrentEvent(jp);
}
@Override
public void copyCurrentStructure(JsonParser jp) throws IOException, JsonProcessingException {
delegate.copyCurrentStructure(jp);
}
@Override
public JsonGenerator disable(Feature f) {
return delegate.disable(f);
}
@Override
public JsonGenerator enable(Feature f) {
return delegate.enable(f);
}
@Override
public void flush() throws IOException {
delegate.flush();
}
@Override
public ObjectCodec getCodec() {
return delegate.getCodec();
}
@Override
public JsonStreamContext getOutputContext() {
return delegate.getOutputContext();
}
@Override
public boolean isClosed() {
return delegate.isClosed();
}
@Override
public boolean isEnabled(Feature f) {
return delegate.isEnabled(f);
}
@Override
public JsonGenerator setCodec(ObjectCodec oc) {
delegate.setCodec(oc);
return this;
}
@Override
public JsonGenerator useDefaultPrettyPrinter() {
delegate.useDefaultPrettyPrinter();
return this;
}
@Override
public void writeBinary(Base64Variant b64variant, byte[] data, int offset, int len)
throws IOException, JsonGenerationException
{
delegate.writeBinary(b64variant, data, offset, len);
}
@Override
public void writeBoolean(boolean state) throws IOException, JsonGenerationException {
delegate.writeBoolean(state);
}
@Override
public void writeEndArray() throws IOException, JsonGenerationException {
delegate.writeEndArray();
}
@Override
public void writeEndObject() throws IOException, JsonGenerationException {
delegate.writeEndObject();
}
@Override
public void writeFieldName(String name) throws IOException,
JsonGenerationException {
delegate.writeFieldName(name);
}
@Override
public void writeNull() throws IOException, JsonGenerationException {
delegate.writeNull();
}
@Override
public void writeNumber(int v) throws IOException, JsonGenerationException {
delegate.writeNumber(v);
}
@Override
public void writeNumber(long v) throws IOException, JsonGenerationException {
delegate.writeNumber(v);
}
@Override
public void writeNumber(BigInteger v) throws IOException,
JsonGenerationException {
delegate.writeNumber(v);
}
@Override
public void writeNumber(double v) throws IOException,
JsonGenerationException {
delegate.writeNumber(v);
}
@Override
public void writeNumber(float v) throws IOException,
JsonGenerationException {
delegate.writeNumber(v);
}
@Override
public void writeNumber(BigDecimal v) throws IOException,
JsonGenerationException {
delegate.writeNumber(v);
}
@Override
public void writeNumber(String encodedValue) throws IOException, JsonGenerationException, UnsupportedOperationException {
delegate.writeNumber(encodedValue);
}
@Override
public void writeObject(Object pojo) throws IOException,JsonProcessingException {
delegate.writeObject(pojo);
}
@Override
public void writeRaw(String text) throws IOException, JsonGenerationException {
delegate.writeRaw(text);
}
@Override
public void writeRaw(String text, int offset, int len) throws IOException, JsonGenerationException {
delegate.writeRaw(text, offset, len);
}
@Override
public void writeRaw(char[] text, int offset, int len) throws IOException, JsonGenerationException {
delegate.writeRaw(text, offset, len);
}
@Override
public void writeRaw(char c) throws IOException, JsonGenerationException {
delegate.writeRaw(c);
}
@Override
public void writeRawValue(String text) throws IOException, JsonGenerationException {
delegate.writeRawValue(text);
}
@Override
public void writeRawValue(String text, int offset, int len) throws IOException, JsonGenerationException {
delegate.writeRawValue(text, offset, len);
}
@Override
public void writeRawValue(char[] text, int offset, int len) throws IOException, JsonGenerationException {
delegate.writeRawValue(text, offset, len);
}
@Override
public void writeStartArray() throws IOException, JsonGenerationException {
delegate.writeStartArray();
}
@Override
public void writeStartObject() throws IOException, JsonGenerationException {
delegate.writeStartObject();
}
@Override
public void writeString(String text) throws IOException,JsonGenerationException {
delegate.writeString(text);
}
@Override
public void writeString(char[] text, int offset, int len) throws IOException, JsonGenerationException {
delegate.writeString(text, offset, len);
}
@Override
public void writeTree(JsonNode rootNode) throws IOException, JsonProcessingException {
delegate.writeTree(rootNode);
}
}