com.sun.jersey.json.impl.writer
Class JacksonRootStrippingGenerator

java.lang.Object
  extended by org.codehaus.jackson.JsonGenerator
      extended by com.sun.jersey.json.impl.writer.JacksonRootStrippingGenerator
All Implemented Interfaces:
Closeable, org.codehaus.jackson.Versioned

public class JacksonRootStrippingGenerator
extends org.codehaus.jackson.JsonGenerator

Author:
japod

Nested Class Summary
 
Nested classes/interfaces inherited from class org.codehaus.jackson.JsonGenerator
org.codehaus.jackson.JsonGenerator.Feature
 
Field Summary
 
Fields inherited from class org.codehaus.jackson.JsonGenerator
_cfgPrettyPrinter
 
Method Summary
 void close()
           
 void copyCurrentEvent(org.codehaus.jackson.JsonParser parser)
           
 void copyCurrentStructure(org.codehaus.jackson.JsonParser parser)
           
static org.codehaus.jackson.JsonGenerator createRootStrippingGenerator(org.codehaus.jackson.JsonGenerator g)
           
static org.codehaus.jackson.JsonGenerator createRootStrippingGenerator(org.codehaus.jackson.JsonGenerator g, int treshold)
           
 org.codehaus.jackson.JsonGenerator disable(org.codehaus.jackson.JsonGenerator.Feature feature)
           
 void disableFeature(org.codehaus.jackson.JsonGenerator.Feature feature)
          Deprecated. 
 org.codehaus.jackson.JsonGenerator enable(org.codehaus.jackson.JsonGenerator.Feature feature)
           
 void enableFeature(org.codehaus.jackson.JsonGenerator.Feature feature)
          Deprecated. 
 void flush()
           
 org.codehaus.jackson.ObjectCodec getCodec()
           
 org.codehaus.jackson.JsonStreamContext getOutputContext()
           
 boolean isClosed()
           
 boolean isEnabled(org.codehaus.jackson.JsonGenerator.Feature f)
           
 boolean isFeatureEnabled(org.codehaus.jackson.JsonGenerator.Feature feature)
          Deprecated. 
 org.codehaus.jackson.JsonGenerator setCodec(org.codehaus.jackson.ObjectCodec codec)
           
 void setFeature(org.codehaus.jackson.JsonGenerator.Feature feature, boolean enabled)
           
 org.codehaus.jackson.JsonGenerator useDefaultPrettyPrinter()
           
 void writeBinary(org.codehaus.jackson.Base64Variant variant, byte[] bytes, int start, int count)
           
 void writeBoolean(boolean b)
           
 void writeEndArray()
           
 void writeEndObject()
           
 void writeFieldName(String name)
           
 void writeNull()
           
 void writeNumber(BigDecimal bd)
           
 void writeNumber(BigInteger number)
           
 void writeNumber(double d)
           
 void writeNumber(float f)
           
 void writeNumber(int i)
           
 void writeNumber(long l)
           
 void writeNumber(String number)
           
 void writeObject(Object o)
           
 void writeRaw(char c)
           
 void writeRaw(char[] raw, int start, int count)
           
 void writeRaw(String raw)
           
 void writeRaw(String raw, int start, int length)
           
 void writeRawUTF8String(byte[] bytes, int start, int length)
           
 void writeRawValue(char[] rawChars, int startIndex, int length)
           
 void writeRawValue(String rawString)
           
 void writeRawValue(String rawString, int startIndex, int length)
           
 void writeStartArray()
           
 void writeStartObject()
           
 void writeString(char[] text, int start, int length)
           
 void writeString(String s)
           
 void writeTree(org.codehaus.jackson.JsonNode node)
           
 void writeUTF8String(byte[] bytes, int start, int length)
           
 
Methods inherited from class org.codehaus.jackson.JsonGenerator
canUseSchema, configure, getCharacterEscapes, getHighestEscapedChar, getOutputTarget, setCharacterEscapes, setHighestNonEscapedChar, setPrettyPrinter, setSchema, version, writeArrayFieldStart, writeBinary, writeBinary, writeBinaryField, writeBooleanField, writeFieldName, writeFieldName, writeNullField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeObjectField, writeObjectFieldStart, writeString, writeStringField
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createRootStrippingGenerator

public static org.codehaus.jackson.JsonGenerator createRootStrippingGenerator(org.codehaus.jackson.JsonGenerator g)

createRootStrippingGenerator

public static org.codehaus.jackson.JsonGenerator createRootStrippingGenerator(org.codehaus.jackson.JsonGenerator g,
                                                                              int treshold)

enableFeature

@Deprecated
public void enableFeature(org.codehaus.jackson.JsonGenerator.Feature feature)
Deprecated. 

Overrides:
enableFeature in class org.codehaus.jackson.JsonGenerator

enable

public org.codehaus.jackson.JsonGenerator enable(org.codehaus.jackson.JsonGenerator.Feature feature)
Specified by:
enable in class org.codehaus.jackson.JsonGenerator

disableFeature

@Deprecated
public void disableFeature(org.codehaus.jackson.JsonGenerator.Feature feature)
Deprecated. 

Overrides:
disableFeature in class org.codehaus.jackson.JsonGenerator

disable

public org.codehaus.jackson.JsonGenerator disable(org.codehaus.jackson.JsonGenerator.Feature feature)
Specified by:
disable in class org.codehaus.jackson.JsonGenerator

setFeature

public void setFeature(org.codehaus.jackson.JsonGenerator.Feature feature,
                       boolean enabled)
Overrides:
setFeature in class org.codehaus.jackson.JsonGenerator

isFeatureEnabled

@Deprecated
public boolean isFeatureEnabled(org.codehaus.jackson.JsonGenerator.Feature feature)
Deprecated. 

Overrides:
isFeatureEnabled in class org.codehaus.jackson.JsonGenerator

isEnabled

public boolean isEnabled(org.codehaus.jackson.JsonGenerator.Feature f)
Specified by:
isEnabled in class org.codehaus.jackson.JsonGenerator

useDefaultPrettyPrinter

public org.codehaus.jackson.JsonGenerator useDefaultPrettyPrinter()
Specified by:
useDefaultPrettyPrinter in class org.codehaus.jackson.JsonGenerator

writeStartArray

public void writeStartArray()
                     throws IOException,
                            org.codehaus.jackson.JsonGenerationException
Specified by:
writeStartArray in class org.codehaus.jackson.JsonGenerator
Throws:
IOException
org.codehaus.jackson.JsonGenerationException

writeEndArray

public void writeEndArray()
                   throws IOException,
                          org.codehaus.jackson.JsonGenerationException
Specified by:
writeEndArray in class org.codehaus.jackson.JsonGenerator
Throws:
IOException
org.codehaus.jackson.JsonGenerationException

writeStartObject

public void writeStartObject()
                      throws IOException,
                             org.codehaus.jackson.JsonGenerationException
Specified by:
writeStartObject in class org.codehaus.jackson.JsonGenerator
Throws:
IOException
org.codehaus.jackson.JsonGenerationException

writeEndObject

public void writeEndObject()
                    throws IOException,
                           org.codehaus.jackson.JsonGenerationException
Specified by:
writeEndObject in class org.codehaus.jackson.JsonGenerator
Throws:
IOException
org.codehaus.jackson.JsonGenerationException

writeFieldName

public void writeFieldName(String name)
                    throws IOException,
                           org.codehaus.jackson.JsonGenerationException
Specified by:
writeFieldName in class org.codehaus.jackson.JsonGenerator
Throws:
IOException
org.codehaus.jackson.JsonGenerationException

writeString

public void writeString(String s)
                 throws IOException,
                        org.codehaus.jackson.JsonGenerationException
Specified by:
writeString in class org.codehaus.jackson.JsonGenerator
Throws:
IOException
org.codehaus.jackson.JsonGenerationException

writeString

public void writeString(char[] text,
                        int start,
                        int length)
                 throws IOException,
                        org.codehaus.jackson.JsonGenerationException
Specified by:
writeString in class org.codehaus.jackson.JsonGenerator
Throws:
IOException
org.codehaus.jackson.JsonGenerationException

writeRawUTF8String

public void writeRawUTF8String(byte[] bytes,
                               int start,
                               int length)
                        throws IOException,
                               org.codehaus.jackson.JsonGenerationException
Specified by:
writeRawUTF8String in class org.codehaus.jackson.JsonGenerator
Throws:
IOException
org.codehaus.jackson.JsonGenerationException

writeUTF8String

public void writeUTF8String(byte[] bytes,
                            int start,
                            int length)
                     throws IOException,
                            org.codehaus.jackson.JsonGenerationException
Specified by:
writeUTF8String in class org.codehaus.jackson.JsonGenerator
Throws:
IOException
org.codehaus.jackson.JsonGenerationException

writeRaw

public void writeRaw(String raw)
              throws IOException,
                     org.codehaus.jackson.JsonGenerationException
Specified by:
writeRaw in class org.codehaus.jackson.JsonGenerator
Throws:
IOException
org.codehaus.jackson.JsonGenerationException

writeRaw

public void writeRaw(String raw,
                     int start,
                     int length)
              throws IOException,
                     org.codehaus.jackson.JsonGenerationException
Specified by:
writeRaw in class org.codehaus.jackson.JsonGenerator
Throws:
IOException
org.codehaus.jackson.JsonGenerationException

writeRaw

public void writeRaw(char[] raw,
                     int start,
                     int count)
              throws IOException,
                     org.codehaus.jackson.JsonGenerationException
Specified by:
writeRaw in class org.codehaus.jackson.JsonGenerator
Throws:
IOException
org.codehaus.jackson.JsonGenerationException

writeRaw

public void writeRaw(char c)
              throws IOException,
                     org.codehaus.jackson.JsonGenerationException
Specified by:
writeRaw in class org.codehaus.jackson.JsonGenerator
Throws:
IOException
org.codehaus.jackson.JsonGenerationException

writeBinary

public void writeBinary(org.codehaus.jackson.Base64Variant variant,
                        byte[] bytes,
                        int start,
                        int count)
                 throws IOException,
                        org.codehaus.jackson.JsonGenerationException
Specified by:
writeBinary in class org.codehaus.jackson.JsonGenerator
Throws:
IOException
org.codehaus.jackson.JsonGenerationException

writeNumber

public void writeNumber(int i)
                 throws IOException,
                        org.codehaus.jackson.JsonGenerationException
Specified by:
writeNumber in class org.codehaus.jackson.JsonGenerator
Throws:
IOException
org.codehaus.jackson.JsonGenerationException

writeNumber

public void writeNumber(long l)
                 throws IOException,
                        org.codehaus.jackson.JsonGenerationException
Specified by:
writeNumber in class org.codehaus.jackson.JsonGenerator
Throws:
IOException
org.codehaus.jackson.JsonGenerationException

writeNumber

public void writeNumber(double d)
                 throws IOException,
                        org.codehaus.jackson.JsonGenerationException
Specified by:
writeNumber in class org.codehaus.jackson.JsonGenerator
Throws:
IOException
org.codehaus.jackson.JsonGenerationException

writeNumber

public void writeNumber(float f)
                 throws IOException,
                        org.codehaus.jackson.JsonGenerationException
Specified by:
writeNumber in class org.codehaus.jackson.JsonGenerator
Throws:
IOException
org.codehaus.jackson.JsonGenerationException

writeNumber

public void writeNumber(BigDecimal bd)
                 throws IOException,
                        org.codehaus.jackson.JsonGenerationException
Specified by:
writeNumber in class org.codehaus.jackson.JsonGenerator
Throws:
IOException
org.codehaus.jackson.JsonGenerationException

writeNumber

public void writeNumber(String number)
                 throws IOException,
                        org.codehaus.jackson.JsonGenerationException,
                        UnsupportedOperationException
Specified by:
writeNumber in class org.codehaus.jackson.JsonGenerator
Throws:
IOException
org.codehaus.jackson.JsonGenerationException
UnsupportedOperationException

writeBoolean

public void writeBoolean(boolean b)
                  throws IOException,
                         org.codehaus.jackson.JsonGenerationException
Specified by:
writeBoolean in class org.codehaus.jackson.JsonGenerator
Throws:
IOException
org.codehaus.jackson.JsonGenerationException

writeNull

public void writeNull()
               throws IOException,
                      org.codehaus.jackson.JsonGenerationException
Specified by:
writeNull in class org.codehaus.jackson.JsonGenerator
Throws:
IOException
org.codehaus.jackson.JsonGenerationException

copyCurrentEvent

public void copyCurrentEvent(org.codehaus.jackson.JsonParser parser)
                      throws IOException,
                             org.codehaus.jackson.JsonProcessingException
Specified by:
copyCurrentEvent in class org.codehaus.jackson.JsonGenerator
Throws:
IOException
org.codehaus.jackson.JsonProcessingException

copyCurrentStructure

public void copyCurrentStructure(org.codehaus.jackson.JsonParser parser)
                          throws IOException,
                                 org.codehaus.jackson.JsonProcessingException
Specified by:
copyCurrentStructure in class org.codehaus.jackson.JsonGenerator
Throws:
IOException
org.codehaus.jackson.JsonProcessingException

flush

public void flush()
           throws IOException
Specified by:
flush in class org.codehaus.jackson.JsonGenerator
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Specified by:
close in class org.codehaus.jackson.JsonGenerator
Throws:
IOException

setCodec

public org.codehaus.jackson.JsonGenerator setCodec(org.codehaus.jackson.ObjectCodec codec)
Specified by:
setCodec in class org.codehaus.jackson.JsonGenerator

getCodec

public org.codehaus.jackson.ObjectCodec getCodec()
Specified by:
getCodec in class org.codehaus.jackson.JsonGenerator

writeRawValue

public void writeRawValue(String rawString)
                   throws IOException,
                          org.codehaus.jackson.JsonGenerationException
Specified by:
writeRawValue in class org.codehaus.jackson.JsonGenerator
Throws:
IOException
org.codehaus.jackson.JsonGenerationException

writeRawValue

public void writeRawValue(String rawString,
                          int startIndex,
                          int length)
                   throws IOException,
                          org.codehaus.jackson.JsonGenerationException
Specified by:
writeRawValue in class org.codehaus.jackson.JsonGenerator
Throws:
IOException
org.codehaus.jackson.JsonGenerationException

writeRawValue

public void writeRawValue(char[] rawChars,
                          int startIndex,
                          int length)
                   throws IOException,
                          org.codehaus.jackson.JsonGenerationException
Specified by:
writeRawValue in class org.codehaus.jackson.JsonGenerator
Throws:
IOException
org.codehaus.jackson.JsonGenerationException

writeNumber

public void writeNumber(BigInteger number)
                 throws IOException,
                        org.codehaus.jackson.JsonGenerationException
Specified by:
writeNumber in class org.codehaus.jackson.JsonGenerator
Throws:
IOException
org.codehaus.jackson.JsonGenerationException

writeObject

public void writeObject(Object o)
                 throws IOException,
                        org.codehaus.jackson.JsonProcessingException
Specified by:
writeObject in class org.codehaus.jackson.JsonGenerator
Throws:
IOException
org.codehaus.jackson.JsonProcessingException

writeTree

public void writeTree(org.codehaus.jackson.JsonNode node)
               throws IOException,
                      org.codehaus.jackson.JsonProcessingException
Specified by:
writeTree in class org.codehaus.jackson.JsonGenerator
Throws:
IOException
org.codehaus.jackson.JsonProcessingException

getOutputContext

public org.codehaus.jackson.JsonStreamContext getOutputContext()
Specified by:
getOutputContext in class org.codehaus.jackson.JsonGenerator

isClosed

public boolean isClosed()
Specified by:
isClosed in class org.codehaus.jackson.JsonGenerator


Copyright © 2011 Oracle Corporation. All Rights Reserved.