com.bazaarvoice.jackson.rison
Class RisonFactory

java.lang.Object
  extended by com.fasterxml.jackson.core.JsonFactory
      extended by com.bazaarvoice.jackson.rison.RisonFactory
All Implemented Interfaces:
com.fasterxml.jackson.core.Versioned, Serializable

public class RisonFactory
extends com.fasterxml.jackson.core.JsonFactory

See the Rison spec.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.fasterxml.jackson.core.JsonFactory
com.fasterxml.jackson.core.JsonFactory.Feature
 
Field Summary
protected  int _risonGeneratorFeatures
           
protected  int _risonParserFeatures
           
static String FORMAT_NAME_RISON
           
 
Fields inherited from class com.fasterxml.jackson.core.JsonFactory
_characterEscapes, _factoryFeatures, _generatorFeatures, _inputDecorator, _objectCodec, _outputDecorator, _parserFeatures, _recyclerRef, _rootByteSymbols, _rootCharSymbols, _rootValueSeparator, DEFAULT_FACTORY_FEATURE_FLAGS, DEFAULT_GENERATOR_FEATURE_FLAGS, DEFAULT_PARSER_FEATURE_FLAGS, FORMAT_NAME_JSON
 
Constructor Summary
RisonFactory()
           
RisonFactory(com.fasterxml.jackson.core.ObjectCodec codec)
           
 
Method Summary
protected  RisonGenerator _createGenerator(Writer out, com.fasterxml.jackson.core.io.IOContext ctxt)
           
protected  RisonGenerator _createJsonGenerator(Writer out, com.fasterxml.jackson.core.io.IOContext ctxt)
          Deprecated. 
protected  RisonParser _createJsonParser(byte[] data, int offset, int len, com.fasterxml.jackson.core.io.IOContext ctxt)
          Deprecated. 
protected  RisonParser _createJsonParser(InputStream in, com.fasterxml.jackson.core.io.IOContext ctxt)
          Deprecated. 
protected  RisonParser _createJsonParser(Reader r, com.fasterxml.jackson.core.io.IOContext ctxt)
          Deprecated. 
protected  RisonParser _createParser(byte[] data, int offset, int len, com.fasterxml.jackson.core.io.IOContext ctxt)
           
protected  RisonParser _createParser(InputStream in, com.fasterxml.jackson.core.io.IOContext ctxt)
           
protected  RisonParser _createParser(Reader r, com.fasterxml.jackson.core.io.IOContext ctxt)
           
protected  RisonGenerator _createUTF8Generator(OutputStream out, com.fasterxml.jackson.core.io.IOContext ctxt)
           
protected  RisonGenerator _createUTF8JsonGenerator(OutputStream out, com.fasterxml.jackson.core.io.IOContext ctxt)
          Deprecated. 
 RisonFactory configure(RisonGenerator.Feature f, boolean state)
           
 RisonFactory configure(RisonParser.Feature f, boolean state)
           
 RisonFactory copy()
           
 RisonFactory disable(RisonGenerator.Feature f)
           
 RisonFactory disable(RisonParser.Feature f)
           
 RisonFactory enable(RisonGenerator.Feature f)
           
 RisonFactory enable(RisonParser.Feature f)
           
 String getFormatName()
           
 com.fasterxml.jackson.core.format.MatchStrength hasFormat(com.fasterxml.jackson.core.format.InputAccessor acc)
           
 boolean isEnabled(RisonGenerator.Feature f)
           
 boolean isEnabled(RisonParser.Feature f)
           
protected  Object readResolve()
           
 com.fasterxml.jackson.core.Version version()
           
 
Methods inherited from class com.fasterxml.jackson.core.JsonFactory
_checkInvalidCopy, _createContext, _createWriter, _getBufferRecycler, _optimizedStreamFromURL, canUseSchema, configure, configure, configure, createGenerator, createGenerator, createGenerator, createGenerator, createJsonGenerator, createJsonGenerator, createJsonGenerator, createJsonGenerator, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createParser, createParser, createParser, createParser, createParser, createParser, createParser, disable, disable, disable, enable, enable, enable, getCharacterEscapes, getCodec, getInputDecorator, getOutputDecorator, getRootValueSeparator, hasJSONFormat, isEnabled, isEnabled, isEnabled, requiresCustomCodec, setCharacterEscapes, setCodec, setInputDecorator, setOutputDecorator, setRootValueSeparator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FORMAT_NAME_RISON

public static final String FORMAT_NAME_RISON
See Also:
Constant Field Values

_risonParserFeatures

protected int _risonParserFeatures

_risonGeneratorFeatures

protected int _risonGeneratorFeatures
Constructor Detail

RisonFactory

public RisonFactory()

RisonFactory

public RisonFactory(com.fasterxml.jackson.core.ObjectCodec codec)
Method Detail

copy

public RisonFactory copy()
Overrides:
copy in class com.fasterxml.jackson.core.JsonFactory

readResolve

protected Object readResolve()
Overrides:
readResolve in class com.fasterxml.jackson.core.JsonFactory

getFormatName

public String getFormatName()
Overrides:
getFormatName in class com.fasterxml.jackson.core.JsonFactory

hasFormat

public com.fasterxml.jackson.core.format.MatchStrength hasFormat(com.fasterxml.jackson.core.format.InputAccessor acc)
                                                          throws IOException
Overrides:
hasFormat in class com.fasterxml.jackson.core.JsonFactory
Throws:
IOException

version

public com.fasterxml.jackson.core.Version version()
Specified by:
version in interface com.fasterxml.jackson.core.Versioned
Overrides:
version in class com.fasterxml.jackson.core.JsonFactory

configure

public final RisonFactory configure(RisonParser.Feature f,
                                    boolean state)

enable

public RisonFactory enable(RisonParser.Feature f)

disable

public RisonFactory disable(RisonParser.Feature f)

isEnabled

public boolean isEnabled(RisonParser.Feature f)

configure

public RisonFactory configure(RisonGenerator.Feature f,
                              boolean state)

enable

public RisonFactory enable(RisonGenerator.Feature f)

disable

public RisonFactory disable(RisonGenerator.Feature f)

isEnabled

public final boolean isEnabled(RisonGenerator.Feature f)

_createParser

protected RisonParser _createParser(InputStream in,
                                    com.fasterxml.jackson.core.io.IOContext ctxt)
                             throws IOException,
                                    com.fasterxml.jackson.core.JsonParseException
Overrides:
_createParser in class com.fasterxml.jackson.core.JsonFactory
Throws:
IOException
com.fasterxml.jackson.core.JsonParseException

_createParser

protected RisonParser _createParser(Reader r,
                                    com.fasterxml.jackson.core.io.IOContext ctxt)
                             throws IOException,
                                    com.fasterxml.jackson.core.JsonParseException
Overrides:
_createParser in class com.fasterxml.jackson.core.JsonFactory
Throws:
IOException
com.fasterxml.jackson.core.JsonParseException

_createParser

protected RisonParser _createParser(byte[] data,
                                    int offset,
                                    int len,
                                    com.fasterxml.jackson.core.io.IOContext ctxt)
                             throws IOException,
                                    com.fasterxml.jackson.core.JsonParseException
Overrides:
_createParser in class com.fasterxml.jackson.core.JsonFactory
Throws:
IOException
com.fasterxml.jackson.core.JsonParseException

_createJsonParser

@Deprecated
protected RisonParser _createJsonParser(InputStream in,
                                                   com.fasterxml.jackson.core.io.IOContext ctxt)
                                 throws IOException,
                                        com.fasterxml.jackson.core.JsonParseException
Deprecated. 

Overrides:
_createJsonParser in class com.fasterxml.jackson.core.JsonFactory
Throws:
IOException
com.fasterxml.jackson.core.JsonParseException

_createJsonParser

@Deprecated
protected RisonParser _createJsonParser(Reader r,
                                                   com.fasterxml.jackson.core.io.IOContext ctxt)
                                 throws IOException,
                                        com.fasterxml.jackson.core.JsonParseException
Deprecated. 

Overrides:
_createJsonParser in class com.fasterxml.jackson.core.JsonFactory
Throws:
IOException
com.fasterxml.jackson.core.JsonParseException

_createJsonParser

@Deprecated
protected RisonParser _createJsonParser(byte[] data,
                                                   int offset,
                                                   int len,
                                                   com.fasterxml.jackson.core.io.IOContext ctxt)
                                 throws IOException,
                                        com.fasterxml.jackson.core.JsonParseException
Deprecated. 

Overrides:
_createJsonParser in class com.fasterxml.jackson.core.JsonFactory
Throws:
IOException
com.fasterxml.jackson.core.JsonParseException

_createGenerator

protected RisonGenerator _createGenerator(Writer out,
                                          com.fasterxml.jackson.core.io.IOContext ctxt)
                                   throws IOException
Overrides:
_createGenerator in class com.fasterxml.jackson.core.JsonFactory
Throws:
IOException

_createJsonGenerator

@Deprecated
protected RisonGenerator _createJsonGenerator(Writer out,
                                                         com.fasterxml.jackson.core.io.IOContext ctxt)
                                       throws IOException
Deprecated. 

Overrides:
_createJsonGenerator in class com.fasterxml.jackson.core.JsonFactory
Throws:
IOException

_createUTF8Generator

protected RisonGenerator _createUTF8Generator(OutputStream out,
                                              com.fasterxml.jackson.core.io.IOContext ctxt)
                                       throws IOException
Overrides:
_createUTF8Generator in class com.fasterxml.jackson.core.JsonFactory
Throws:
IOException

_createUTF8JsonGenerator

@Deprecated
protected RisonGenerator _createUTF8JsonGenerator(OutputStream out,
                                                             com.fasterxml.jackson.core.io.IOContext ctxt)
                                           throws IOException
Deprecated. 

Overrides:
_createUTF8JsonGenerator in class com.fasterxml.jackson.core.JsonFactory
Throws:
IOException


Copyright © 2013. All Rights Reserved.