package org.apache.ode.jacob.soup.jackson; | |
import java.io.IOException; | |
import java.math.BigDecimal; | |
import java.math.BigInteger; | |
import com.fasterxml.jackson.core.Base64Variant; | |
import com.fasterxml.jackson.core.JsonGenerationException; | |
import com.fasterxml.jackson.core.ObjectCodec; | |
import com.fasterxml.jackson.core.io.IOContext; | |
import com.fasterxml.jackson.core.json.JsonGeneratorImpl; | |
/** | |
* No-op Json generator. | |
* | |
* @author vanto | |
* | |
*/ | |
public class NullJsonGenerator extends JsonGeneratorImpl { | |
public NullJsonGenerator(IOContext ctxt, int features, ObjectCodec codec) { | |
super(ctxt, features, codec); | |
} | |
public void flush() throws IOException { | |
} | |
protected void _releaseBuffers() { | |
} | |
protected void _verifyValueWrite(String typeMsg) throws IOException, | |
JsonGenerationException { | |
} | |
public void writeStartArray() throws IOException, JsonGenerationException { | |
} | |
public void writeEndArray() throws IOException, JsonGenerationException { | |
} | |
public void writeStartObject() throws IOException, JsonGenerationException { | |
} | |
public void writeEndObject() throws IOException, JsonGenerationException { | |
} | |
public void writeFieldName(String name) throws IOException, | |
JsonGenerationException { | |
} | |
public void writeString(String text) throws IOException, | |
JsonGenerationException { | |
} | |
public void writeString(char[] text, int offset, int len) | |
throws IOException, JsonGenerationException { | |
} | |
public void writeRawUTF8String(byte[] text, int offset, int length) | |
throws IOException, JsonGenerationException { | |
} | |
public void writeUTF8String(byte[] text, int offset, int length) | |
throws IOException, JsonGenerationException { | |
} | |
public void writeRaw(String text) throws IOException, | |
JsonGenerationException { | |
} | |
public void writeRaw(String text, int offset, int len) throws IOException, | |
JsonGenerationException { | |
} | |
public void writeRaw(char[] text, int offset, int len) throws IOException, | |
JsonGenerationException { | |
} | |
public void writeRaw(char c) throws IOException, JsonGenerationException { | |
} | |
public void writeBinary(Base64Variant b64variant, byte[] data, int offset, | |
int len) throws IOException, JsonGenerationException { | |
} | |
public void writeNumber(int v) throws IOException, JsonGenerationException { | |
} | |
public void writeNumber(long v) throws IOException, JsonGenerationException { | |
} | |
public void writeNumber(BigInteger v) throws IOException, | |
JsonGenerationException { | |
} | |
public void writeNumber(double d) throws IOException, | |
JsonGenerationException { | |
} | |
public void writeNumber(float f) throws IOException, | |
JsonGenerationException { | |
} | |
public void writeNumber(BigDecimal dec) throws IOException, | |
JsonGenerationException { | |
} | |
public void writeNumber(String encodedValue) throws IOException, | |
JsonGenerationException, UnsupportedOperationException { | |
} | |
public void writeBoolean(boolean state) throws IOException, | |
JsonGenerationException { | |
} | |
public void writeNull() throws IOException, JsonGenerationException { | |
} | |
} |