// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.geocities.com/kpdus/jad.html // Decompiler options: braces fieldsfirst space lnc package com.fasterxml.jackson.core.util; import com.fasterxml.jackson.core.Base64Variant; import com.fasterxml.jackson.core.FormatSchema; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonStreamContext; import com.fasterxml.jackson.core.ObjectCodec; import com.fasterxml.jackson.core.PrettyPrinter; import com.fasterxml.jackson.core.SerializableString; import com.fasterxml.jackson.core.TreeNode; import com.fasterxml.jackson.core.Version; import com.fasterxml.jackson.core.io.CharacterEscapes; import java.io.IOException; import java.io.InputStream; import java.math.BigDecimal; import java.math.BigInteger; public class JsonGeneratorDelegate extends JsonGenerator { protected JsonGenerator _flddelegate; protected boolean delegateCopyMethods; public JsonGeneratorDelegate(JsonGenerator jsongenerator) { this(jsongenerator, true); } public JsonGeneratorDelegate(JsonGenerator jsongenerator, boolean flag) { _flddelegate = jsongenerator; delegateCopyMethods = flag; } public boolean canOmitFields() { return _flddelegate.canOmitFields(); } public boolean canUseSchema(FormatSchema formatschema) { return _flddelegate.canUseSchema(formatschema); } public boolean canWriteBinaryNatively() { return _flddelegate.canWriteBinaryNatively(); } public boolean canWriteObjectId() { return _flddelegate.canWriteObjectId(); } public boolean canWriteTypeId() { return _flddelegate.canWriteTypeId(); } public void close() throws IOException { _flddelegate.close(); } public void copyCurrentEvent(JsonParser jsonparser) throws IOException { if (delegateCopyMethods) { _flddelegate.copyCurrentEvent(jsonparser); return; } else { super.copyCurrentEvent(jsonparser); return; } } public void copyCurrentStructure(JsonParser jsonparser) throws IOException { if (delegateCopyMethods) { _flddelegate.copyCurrentStructure(jsonparser); return; } else { super.copyCurrentStructure(jsonparser); return; } } public JsonGenerator disable(com.fasterxml.jackson.core.JsonGenerator.Feature feature) { _flddelegate.disable(feature); return this; } public JsonGenerator enable(com.fasterxml.jackson.core.JsonGenerator.Feature feature) { _flddelegate.enable(feature); return this; } public void flush() throws IOException { _flddelegate.flush(); } public CharacterEscapes getCharacterEscapes() { return _flddelegate.getCharacterEscapes(); } public ObjectCodec getCodec() { return _flddelegate.getCodec(); } public Object getCurrentValue() { return _flddelegate.getCurrentValue(); } public JsonGenerator getDelegate() { return _flddelegate; } public int getFeatureMask() { return _flddelegate.getFeatureMask(); } public int getHighestEscapedChar() { return _flddelegate.getHighestEscapedChar(); } public int getOutputBuffered() { return _flddelegate.getOutputBuffered(); } public JsonStreamContext getOutputContext() { return _flddelegate.getOutputContext(); } public Object getOutputTarget() { return _flddelegate.getOutputTarget(); } public PrettyPrinter getPrettyPrinter() { return _flddelegate.getPrettyPrinter(); } public FormatSchema getSchema() { return _flddelegate.getSchema(); } public boolean isClosed() { return _flddelegate.isClosed(); } public boolean isEnabled(com.fasterxml.jackson.core.JsonGenerator.Feature feature) { return _flddelegate.isEnabled(feature); } public JsonGenerator setCharacterEscapes(CharacterEscapes characterescapes) { _flddelegate.setCharacterEscapes(characterescapes); return this; } public JsonGenerator setCodec(ObjectCodec objectcodec) { _flddelegate.setCodec(objectcodec); return this; } public void setCurrentValue(Object obj) { _flddelegate.setCurrentValue(obj); } public JsonGenerator setFeatureMask(int i) { _flddelegate.setFeatureMask(i); return this; } public JsonGenerator setHighestNonEscapedChar(int i) { _flddelegate.setHighestNonEscapedChar(i); return this; } public JsonGenerator setPrettyPrinter(PrettyPrinter prettyprinter) { _flddelegate.setPrettyPrinter(prettyprinter); return this; } public JsonGenerator setRootValueSeparator(SerializableString serializablestring) { _flddelegate.setRootValueSeparator(serializablestring); return this; } public void setSchema(FormatSchema formatschema) { _flddelegate.setSchema(formatschema); } public JsonGenerator useDefaultPrettyPrinter() { _flddelegate.useDefaultPrettyPrinter(); return this; } public Version version() { return _flddelegate.version(); } public int writeBinary(Base64Variant base64variant, InputStream inputstream, int i) throws IOException { return _flddelegate.writeBinary(base64variant, inputstream, i); } public void writeBinary(Base64Variant base64variant, byte abyte0[], int i, int j) throws IOException { _flddelegate.writeBinary(base64variant, abyte0, i, j); } public void writeBoolean(boolean flag) throws IOException { _flddelegate.writeBoolean(flag); } public void writeEndArray() throws IOException { _flddelegate.writeEndArray(); } public void writeEndObject() throws IOException { _flddelegate.writeEndObject(); } public void writeFieldName(SerializableString serializablestring) throws IOException { _flddelegate.writeFieldName(serializablestring); } public void writeFieldName(String s) throws IOException { _flddelegate.writeFieldName(s); } public void writeNull() throws IOException { _flddelegate.writeNull(); } public void writeNumber(double d) throws IOException { _flddelegate.writeNumber(d); } public void writeNumber(float f) throws IOException { _flddelegate.writeNumber(f); } public void writeNumber(int i) throws IOException { _flddelegate.writeNumber(i); } public void writeNumber(long l) throws IOException { _flddelegate.writeNumber(l); } public void writeNumber(String s) throws IOException, UnsupportedOperationException { _flddelegate.writeNumber(s); } public void writeNumber(BigDecimal bigdecimal) throws IOException { _flddelegate.writeNumber(bigdecimal); } public void writeNumber(BigInteger biginteger) throws IOException { _flddelegate.writeNumber(biginteger); } public void writeNumber(short word0) throws IOException { _flddelegate.writeNumber(word0); } public void writeObject(Object obj) throws IOException, JsonProcessingException { if (delegateCopyMethods) { _flddelegate.writeObject(obj); return; } if (obj == null) { writeNull(); return; } if (getCodec() != null) { getCodec().writeValue(this, obj); return; } else { _writeSimpleObject(obj); return; } } public void writeObjectId(Object obj) throws IOException { _flddelegate.writeObjectId(obj); } public void writeObjectRef(Object obj) throws IOException { _flddelegate.writeObjectRef(obj); } public void writeOmittedField(String s) throws IOException { _flddelegate.writeOmittedField(s); } public void writeRaw(char c) throws IOException { _flddelegate.writeRaw(c); } public void writeRaw(SerializableString serializablestring) throws IOException { _flddelegate.writeRaw(serializablestring); } public void writeRaw(String s) throws IOException { _flddelegate.writeRaw(s); } public void writeRaw(String s, int i, int j) throws IOException { _flddelegate.writeRaw(s, i, j); } public void writeRaw(char ac[], int i, int j) throws IOException { _flddelegate.writeRaw(ac, i, j); } public void writeRawUTF8String(byte abyte0[], int i, int j) throws IOException { _flddelegate.writeRawUTF8String(abyte0, i, j); } public void writeRawValue(String s) throws IOException { _flddelegate.writeRawValue(s); } public void writeRawValue(String s, int i, int j) throws IOException { _flddelegate.writeRawValue(s, i, j); } public void writeRawValue(char ac[], int i, int j) throws IOException { _flddelegate.writeRawValue(ac, i, j); } public void writeStartArray() throws IOException { _flddelegate.writeStartArray(); } public void writeStartArray(int i) throws IOException { _flddelegate.writeStartArray(i); } public void writeStartObject() throws IOException { _flddelegate.writeStartObject(); } public void writeString(SerializableString serializablestring) throws IOException { _flddelegate.writeString(serializablestring); } public void writeString(String s) throws IOException { _flddelegate.writeString(s); } public void writeString(char ac[], int i, int j) throws IOException { _flddelegate.writeString(ac, i, j); } public void writeTree(TreeNode treenode) throws IOException { if (delegateCopyMethods) { _flddelegate.writeTree(treenode); return; } if (treenode == null) { writeNull(); return; } if (getCodec() == null) { throw new IllegalStateException("No ObjectCodec defined"); } else { getCodec().writeValue(this, treenode); return; } } public void writeTypeId(Object obj) throws IOException { _flddelegate.writeTypeId(obj); } public void writeUTF8String(byte abyte0[], int i, int j) throws IOException { _flddelegate.writeUTF8String(abyte0, i, j); } }