Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package com.fasterxml.jackson.core.util;
  
  
 
 public class JsonGeneratorDelegate extends JsonGenerator
 {
    
Delegate object that method calls are delegated to.
 
     protected JsonGenerator delegate;
 
     /*
     /**********************************************************
     /* Construction, initialization
     /**********************************************************
      */
     
     public JsonGeneratorDelegate(JsonGenerator d) {
          = d;
     }   
 
     @Override
     public ObjectCodec getCodec() {
         return .getCodec();
     }
 
     @Override
     public JsonGenerator setCodec(ObjectCodec oc) {
         .setCodec(oc);
         return this;
     }
     
     @Override
     public void setSchema(FormatSchema schema) {
         .setSchema(schema);
     }
 
     @Override
     public FormatSchema getSchema() {
         return .getSchema();
     }
     
     @Override
     public boolean canUseSchema(FormatSchema schema) {
         return .canUseSchema(schema);
     }
 
     @Override
     public Version version() {
         return .version();
     }
 
     @Override
     public Object getOutputTarget() {
         return .getOutputTarget();
     }
 
     @Override
         .setRootValueSeparator(sep);
         return this;
     }
     
     /*
     /**********************************************************
     /* Public API, configuration
     /**********************************************************
      */
 
     @Override
     public JsonGenerator enable(Feature f) {
         .enable(f);
         return this;
     }
     
     @Override
     public JsonGenerator disable(Feature f) {
         .disable(f);
         return this;
     }
 
     @Override
     public boolean isEnabled(Feature f) {
         return .isEnabled(f);
     }
 
     // final, can't override (and no need to)
     //public final JsonGenerator configure(Feature f, boolean state)
 
     /*
     /**********************************************************
     /* Configuring generator
     /**********************************************************
      */
    @Override
        .setPrettyPrinter(pp);
        return this;
    }
    @Override
    public PrettyPrinter getPrettyPrinter() {
        return .getPrettyPrinter();
    }
    
    @Override
        return this;
    }
    @Override
    public JsonGenerator setHighestNonEscapedChar(int charCode) {
        .setHighestNonEscapedChar(charCode);
        return this;
    }
    @Override
    public int getHighestEscapedChar() {
        return .getHighestEscapedChar();
    }
    @Override
        return .getCharacterEscapes();
    }
    @Override
        .setCharacterEscapes(esc);
        return this;
    }
    /*
    /**********************************************************
    /* Public API, write methods, structural
    /**********************************************************
     */
    @Override
    public void writeStartArray() throws IOExceptionJsonGenerationException {
         .writeStartArray();
    }
    @Override
    public void writeEndArray() throws IOExceptionJsonGenerationException {
        .writeEndArray();
    }
    @Override
    public void writeStartObject() throws IOExceptionJsonGenerationException {
        .writeStartObject();
    }
    
    @Override
    public void writeEndObject() throws IOExceptionJsonGenerationException {
        .writeEndObject();
    }
    @Override
    public void writeFieldName(String name)
        throws IOExceptionJsonGenerationException
    {
        .writeFieldName(name);
    }
    @Override
    public void writeFieldName(SerializableString name)
        throws IOExceptionJsonGenerationException
    {
        .writeFieldName(name);
    }
    
    /*
    /**********************************************************
    /* Public API, write methods, text/String values
    /**********************************************************
     */
    @Override
    public void writeString(String textthrows IOException,JsonGenerationException {
        .writeString(text);
    }
    @Override
    public void writeString(char[] textint offsetint lenthrows IOExceptionJsonGenerationException {
        .writeString(textoffsetlen);
    }
    @Override
    public void writeString(SerializableString textthrows IOExceptionJsonGenerationException {
        .writeString(text);
    }
    @Override
    public void writeRawUTF8String(byte[] textint offsetint length)
        throws IOExceptionJsonGenerationException
    {
        .writeRawUTF8String(textoffsetlength);
    }
    @Override
    public void writeUTF8String(byte[] textint offsetint length)
        throws IOExceptionJsonGenerationException
    {
        .writeUTF8String(textoffsetlength);
    }
    /*
    /**********************************************************
    /* Public API, write methods, binary/raw content
    /**********************************************************
     */
    @Override
    public void writeRaw(String textthrows IOExceptionJsonGenerationException {
        .writeRaw(text);
    }
    @Override
    public void writeRaw(String textint offsetint lenthrows IOExceptionJsonGenerationException {
        .writeRaw(textoffsetlen);
    }
    @Override
    public void writeRaw(SerializableString raw)
        throws IOExceptionJsonGenerationException {
        .writeRaw(raw);
    }
    
    @Override
    public void writeRaw(char[] textint offsetint lenthrows IOExceptionJsonGenerationException {
        .writeRaw(textoffsetlen);
    }
    @Override
    public void writeRaw(char cthrows IOExceptionJsonGenerationException {
        .writeRaw(c);
    }
    @Override
    public void writeRawValue(String textthrows IOExceptionJsonGenerationException {
        .writeRawValue(text);
    }
    @Override
    public void writeRawValue(String textint offsetint lenthrows IOExceptionJsonGenerationException {
         .writeRawValue(textoffsetlen);
    }
    @Override
    public void writeRawValue(char[] textint offsetint lenthrows IOExceptionJsonGenerationException {
         .writeRawValue(textoffsetlen);
    }
    @Override
    public void writeBinary(Base64Variant b64variantbyte[] dataint offsetint len)
        throws IOExceptionJsonGenerationException
    {
        .writeBinary(b64variantdataoffsetlen);
    }
    @Override
    public int writeBinary(Base64Variant b64variantInputStream dataint dataLength)
        throws IOExceptionJsonGenerationException {
        return .writeBinary(b64variantdatadataLength);
    }
    
    /*
    /**********************************************************
    /* Public API, write methods, other value types
    /**********************************************************
     */
    @Override
    public void writeNumber(short vthrows IOExceptionJsonGenerationException {
        .writeNumber(v);
    }
    @Override
    public void writeNumber(int vthrows IOExceptionJsonGenerationException {
        .writeNumber(v);
    }
    @Override
    public void writeNumber(long vthrows IOExceptionJsonGenerationException {
        .writeNumber(v);
    }
    @Override
    public void writeNumber(BigInteger vthrows IOException,
            JsonGenerationException {
        .writeNumber(v);
    }
    @Override
    public void writeNumber(double vthrows IOException,
            JsonGenerationException {
        .writeNumber(v);
    }
    @Override
    public void writeNumber(float vthrows IOException,
            JsonGenerationException {
        .writeNumber(v);
    }
    @Override
    public void writeNumber(BigDecimal vthrows IOException,
            JsonGenerationException {
        .writeNumber(v);
    }
    @Override
    public void writeNumber(String encodedValuethrows IOExceptionJsonGenerationExceptionUnsupportedOperationException {
        .writeNumber(encodedValue);
    }
    @Override
    public void writeBoolean(boolean statethrows IOExceptionJsonGenerationException {
        .writeBoolean(state);
    }
    
    @Override
    public void writeNull() throws IOExceptionJsonGenerationException {
        .writeNull();
    }
    /*
    /**********************************************************
    /* Public API, write methods, serializing Java objects
    /**********************************************************
     */
    
    @Override
    public void writeObject(Object pojothrows IOException,JsonProcessingException {
        .writeObject(pojo);
    }
    
    @Override
    public void writeTree(TreeNode rootNodethrows IOExceptionJsonProcessingException {
        .writeTree(rootNode);
    }
    /*
    /**********************************************************
    /* Public API, convenience field write methods
    /**********************************************************
     */
    // // These are fine, just delegate to other methods...
    /*
    /**********************************************************
    /* Public API, copy-through methods
    /**********************************************************
     */
    @Override
    public void copyCurrentEvent(JsonParser jpthrows IOExceptionJsonProcessingException {
        .copyCurrentEvent(jp);
    }
    @Override
        .copyCurrentStructure(jp);
    }
    /*
    /**********************************************************
    /* Public API, context access
    /**********************************************************
     */
    @Override
        return .getOutputContext();
    }
    /*
    /**********************************************************
    /* Public API, buffer handling
    /**********************************************************
     */
    
    @Override
    public void flush() throws IOException {
        .flush();
    }
    
    @Override
    public void close() throws IOException {
        .close();
    }
    /*
    /**********************************************************
    /* Closeable implementation
    /**********************************************************
     */
    
    @Override
    public boolean isClosed() {
        return .isClosed();
    }
New to GrepCode? Check out our FAQ X