public class YAMLFactory
extends com.fasterxml.jackson.core.JsonFactory
| Modifier and Type | Field and Description |
|---|---|
protected org.yaml.snakeyaml.DumperOptions |
_outputOptions |
protected org.yaml.snakeyaml.DumperOptions.Version |
_version |
protected int |
_yamlGeneratorFeatures |
protected int |
_yamlParserFeatures |
protected static int |
DEFAULT_YAML_GENERATOR_FEATURE_FLAGS
Bitfield (set of flags) of all generator features that are enabled
by default.
|
protected static int |
DEFAULT_YAML_PARSER_FEATURE_FLAGS
Bitfield (set of flags) of all parser features that are enabled
by default.
|
static java.lang.String |
FORMAT_NAME_YAML
Name used to identify YAML format.
|
protected java.nio.charset.Charset |
UTF8 |
_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 and Description |
|---|
YAMLFactory()
Default constructor used to create factory instances.
|
YAMLFactory(com.fasterxml.jackson.core.ObjectCodec oc) |
YAMLFactory(YAMLFactory src,
com.fasterxml.jackson.core.ObjectCodec oc) |
| Modifier and Type | Method and Description |
|---|---|
protected YAMLGenerator |
_createGenerator(java.io.Writer out,
com.fasterxml.jackson.core.io.IOContext ctxt) |
protected YAMLGenerator |
_createJsonGenerator(java.io.Writer out,
com.fasterxml.jackson.core.io.IOContext ctxt) |
protected YAMLParser |
_createJsonParser(byte[] data,
int offset,
int len,
com.fasterxml.jackson.core.io.IOContext ctxt) |
protected YAMLParser |
_createJsonParser(java.io.InputStream in,
com.fasterxml.jackson.core.io.IOContext ctxt) |
protected com.fasterxml.jackson.core.JsonParser |
_createJsonParser(java.io.Reader r,
com.fasterxml.jackson.core.io.IOContext ctxt) |
protected YAMLParser |
_createParser(byte[] data,
int offset,
int len,
com.fasterxml.jackson.core.io.IOContext ctxt) |
protected YAMLParser |
_createParser(java.io.InputStream in,
com.fasterxml.jackson.core.io.IOContext ctxt) |
protected YAMLParser |
_createParser(java.io.Reader r,
com.fasterxml.jackson.core.io.IOContext ctxt) |
protected java.io.Reader |
_createReader(byte[] data,
int offset,
int len,
com.fasterxml.jackson.core.JsonEncoding enc,
com.fasterxml.jackson.core.io.IOContext ctxt) |
protected java.io.Reader |
_createReader(java.io.InputStream in,
com.fasterxml.jackson.core.JsonEncoding enc,
com.fasterxml.jackson.core.io.IOContext ctxt) |
protected YAMLGenerator |
_createUTF8Generator(java.io.OutputStream out,
com.fasterxml.jackson.core.io.IOContext ctxt) |
protected YAMLGenerator |
_createUTF8JsonGenerator(java.io.OutputStream out,
com.fasterxml.jackson.core.io.IOContext ctxt)
Deprecated.
|
protected java.io.Writer |
_createWriter(java.io.OutputStream out,
com.fasterxml.jackson.core.JsonEncoding enc,
com.fasterxml.jackson.core.io.IOContext ctxt) |
YAMLFactory |
configure(YAMLGenerator.Feature f,
boolean state)
Method for enabling or disabling specified generator feature
(check
YAMLGenerator.Feature for list of features) |
YAMLFactory |
configure(YAMLParser.Feature f,
boolean state)
Method for enabling or disabling specified parser feature
(check
YAMLParser.Feature for list of features) |
YAMLFactory |
copy() |
YAMLGenerator |
createGenerator(java.io.OutputStream out) |
YAMLGenerator |
createGenerator(java.io.OutputStream out,
com.fasterxml.jackson.core.JsonEncoding enc) |
YAMLGenerator |
createGenerator(java.io.Writer out) |
YAMLGenerator |
createJsonGenerator(java.io.OutputStream out)
Deprecated.
|
YAMLGenerator |
createJsonGenerator(java.io.OutputStream out,
com.fasterxml.jackson.core.JsonEncoding enc)
Deprecated.
|
YAMLGenerator |
createJsonGenerator(java.io.Writer out)
Deprecated.
|
YAMLParser |
createJsonParser(byte[] data)
Deprecated.
|
YAMLParser |
createJsonParser(byte[] data,
int offset,
int len)
Deprecated.
|
YAMLParser |
createJsonParser(java.io.File f)
Deprecated.
|
YAMLParser |
createJsonParser(java.io.InputStream in)
Deprecated.
|
com.fasterxml.jackson.core.JsonParser |
createJsonParser(java.io.Reader r)
Deprecated.
|
YAMLParser |
createJsonParser(java.lang.String content)
Deprecated.
|
YAMLParser |
createJsonParser(java.net.URL url)
Deprecated.
|
YAMLParser |
createParser(byte[] data) |
YAMLParser |
createParser(byte[] data,
int offset,
int len) |
YAMLParser |
createParser(java.io.File f) |
YAMLParser |
createParser(java.io.InputStream in) |
com.fasterxml.jackson.core.JsonParser |
createParser(java.io.Reader r) |
YAMLParser |
createParser(java.lang.String content) |
YAMLParser |
createParser(java.net.URL url) |
YAMLFactory |
disable(YAMLGenerator.Feature f)
Method for disabling specified generator feature
(check
YAMLGenerator.Feature for list of features) |
YAMLFactory |
disable(YAMLParser.Feature f)
Method for disabling specified parser features
(check
YAMLParser.Feature for list of features) |
YAMLFactory |
enable(YAMLGenerator.Feature f)
Method for enabling specified generator features
(check
YAMLGenerator.Feature for list of features) |
YAMLFactory |
enable(YAMLParser.Feature f)
Method for enabling specified parser feature
(check
YAMLParser.Feature for list of features) |
java.lang.String |
getFormatName() |
com.fasterxml.jackson.core.format.MatchStrength |
hasFormat(com.fasterxml.jackson.core.format.InputAccessor acc)
Sub-classes need to override this method (as of 1.8)
|
boolean |
isEnabled(YAMLGenerator.Feature f)
Check whether specified generator feature is enabled.
|
boolean |
isEnabled(YAMLParser.Feature f)
Checked whether specified parser feature is enabled.
|
protected java.lang.Object |
readResolve()
Method that we need to override to actually make restoration go
through constructors etc.
|
com.fasterxml.jackson.core.Version |
version() |
_checkInvalidCopy, _createContext, _getBufferRecycler, _optimizedStreamFromURL, canUseSchema, configure, configure, configure, createGenerator, createJsonGenerator, disable, disable, disable, enable, enable, enable, getCharacterEscapes, getCodec, getInputDecorator, getOutputDecorator, getRootValueSeparator, hasJSONFormat, isEnabled, isEnabled, isEnabled, requiresCustomCodec, setCharacterEscapes, setCodec, setInputDecorator, setOutputDecorator, setRootValueSeparatorpublic static final java.lang.String FORMAT_NAME_YAML
getFormatName()protected static final int DEFAULT_YAML_PARSER_FEATURE_FLAGS
protected static final int DEFAULT_YAML_GENERATOR_FEATURE_FLAGS
protected int _yamlParserFeatures
protected int _yamlGeneratorFeatures
protected transient org.yaml.snakeyaml.DumperOptions _outputOptions
protected org.yaml.snakeyaml.DumperOptions.Version _version
protected final java.nio.charset.Charset UTF8
public YAMLFactory()
public YAMLFactory(com.fasterxml.jackson.core.ObjectCodec oc)
public YAMLFactory(YAMLFactory src, com.fasterxml.jackson.core.ObjectCodec oc)
public YAMLFactory copy()
copy in class com.fasterxml.jackson.core.JsonFactoryprotected java.lang.Object readResolve()
readResolve in class com.fasterxml.jackson.core.JsonFactorypublic com.fasterxml.jackson.core.Version version()
version in interface com.fasterxml.jackson.core.Versionedversion in class com.fasterxml.jackson.core.JsonFactorypublic java.lang.String getFormatName()
getFormatName in class com.fasterxml.jackson.core.JsonFactorypublic com.fasterxml.jackson.core.format.MatchStrength hasFormat(com.fasterxml.jackson.core.format.InputAccessor acc)
throws java.io.IOException
hasFormat in class com.fasterxml.jackson.core.JsonFactoryjava.io.IOExceptionpublic final YAMLFactory configure(YAMLParser.Feature f, boolean state)
YAMLParser.Feature for list of features)public YAMLFactory enable(YAMLParser.Feature f)
YAMLParser.Feature for list of features)public YAMLFactory disable(YAMLParser.Feature f)
YAMLParser.Feature for list of features)public final boolean isEnabled(YAMLParser.Feature f)
public final YAMLFactory configure(YAMLGenerator.Feature f, boolean state)
YAMLGenerator.Feature for list of features)public YAMLFactory enable(YAMLGenerator.Feature f)
YAMLGenerator.Feature for list of features)public YAMLFactory disable(YAMLGenerator.Feature f)
YAMLGenerator.Feature for list of features)public final boolean isEnabled(YAMLGenerator.Feature f)
public YAMLParser createParser(java.lang.String content) throws java.io.IOException, com.fasterxml.jackson.core.JsonParseException
createParser in class com.fasterxml.jackson.core.JsonFactoryjava.io.IOExceptioncom.fasterxml.jackson.core.JsonParseExceptionpublic YAMLParser createParser(java.io.File f) throws java.io.IOException, com.fasterxml.jackson.core.JsonParseException
createParser in class com.fasterxml.jackson.core.JsonFactoryjava.io.IOExceptioncom.fasterxml.jackson.core.JsonParseExceptionpublic YAMLParser createParser(java.net.URL url) throws java.io.IOException, com.fasterxml.jackson.core.JsonParseException
createParser in class com.fasterxml.jackson.core.JsonFactoryjava.io.IOExceptioncom.fasterxml.jackson.core.JsonParseExceptionpublic YAMLParser createParser(java.io.InputStream in) throws java.io.IOException, com.fasterxml.jackson.core.JsonParseException
createParser in class com.fasterxml.jackson.core.JsonFactoryjava.io.IOExceptioncom.fasterxml.jackson.core.JsonParseExceptionpublic com.fasterxml.jackson.core.JsonParser createParser(java.io.Reader r)
throws java.io.IOException,
com.fasterxml.jackson.core.JsonParseException
createParser in class com.fasterxml.jackson.core.JsonFactoryjava.io.IOExceptioncom.fasterxml.jackson.core.JsonParseExceptionpublic YAMLParser createParser(byte[] data) throws java.io.IOException, com.fasterxml.jackson.core.JsonParseException
createParser in class com.fasterxml.jackson.core.JsonFactoryjava.io.IOExceptioncom.fasterxml.jackson.core.JsonParseExceptionpublic YAMLParser createParser(byte[] data, int offset, int len) throws java.io.IOException, com.fasterxml.jackson.core.JsonParseException
createParser in class com.fasterxml.jackson.core.JsonFactoryjava.io.IOExceptioncom.fasterxml.jackson.core.JsonParseException@Deprecated public YAMLParser createJsonParser(java.lang.String content) throws java.io.IOException, com.fasterxml.jackson.core.JsonParseException
createJsonParser in class com.fasterxml.jackson.core.JsonFactoryjava.io.IOExceptioncom.fasterxml.jackson.core.JsonParseException@Deprecated public YAMLParser createJsonParser(java.io.File f) throws java.io.IOException, com.fasterxml.jackson.core.JsonParseException
createJsonParser in class com.fasterxml.jackson.core.JsonFactoryjava.io.IOExceptioncom.fasterxml.jackson.core.JsonParseException@Deprecated public YAMLParser createJsonParser(java.net.URL url) throws java.io.IOException, com.fasterxml.jackson.core.JsonParseException
createJsonParser in class com.fasterxml.jackson.core.JsonFactoryjava.io.IOExceptioncom.fasterxml.jackson.core.JsonParseException@Deprecated public YAMLParser createJsonParser(java.io.InputStream in) throws java.io.IOException, com.fasterxml.jackson.core.JsonParseException
createJsonParser in class com.fasterxml.jackson.core.JsonFactoryjava.io.IOExceptioncom.fasterxml.jackson.core.JsonParseException@Deprecated
public com.fasterxml.jackson.core.JsonParser createJsonParser(java.io.Reader r)
throws java.io.IOException,
com.fasterxml.jackson.core.JsonParseException
createJsonParser in class com.fasterxml.jackson.core.JsonFactoryjava.io.IOExceptioncom.fasterxml.jackson.core.JsonParseException@Deprecated public YAMLParser createJsonParser(byte[] data) throws java.io.IOException, com.fasterxml.jackson.core.JsonParseException
createJsonParser in class com.fasterxml.jackson.core.JsonFactoryjava.io.IOExceptioncom.fasterxml.jackson.core.JsonParseException@Deprecated public YAMLParser createJsonParser(byte[] data, int offset, int len) throws java.io.IOException, com.fasterxml.jackson.core.JsonParseException
createJsonParser in class com.fasterxml.jackson.core.JsonFactoryjava.io.IOExceptioncom.fasterxml.jackson.core.JsonParseExceptionpublic YAMLGenerator createGenerator(java.io.OutputStream out, com.fasterxml.jackson.core.JsonEncoding enc) throws java.io.IOException
createGenerator in class com.fasterxml.jackson.core.JsonFactoryjava.io.IOExceptionpublic YAMLGenerator createGenerator(java.io.OutputStream out) throws java.io.IOException
createGenerator in class com.fasterxml.jackson.core.JsonFactoryjava.io.IOExceptionpublic YAMLGenerator createGenerator(java.io.Writer out) throws java.io.IOException
createGenerator in class com.fasterxml.jackson.core.JsonFactoryjava.io.IOException@Deprecated public YAMLGenerator createJsonGenerator(java.io.OutputStream out, com.fasterxml.jackson.core.JsonEncoding enc) throws java.io.IOException
createJsonGenerator in class com.fasterxml.jackson.core.JsonFactoryjava.io.IOException@Deprecated public YAMLGenerator createJsonGenerator(java.io.OutputStream out) throws java.io.IOException
createJsonGenerator in class com.fasterxml.jackson.core.JsonFactoryjava.io.IOException@Deprecated public YAMLGenerator createJsonGenerator(java.io.Writer out) throws java.io.IOException
createJsonGenerator in class com.fasterxml.jackson.core.JsonFactoryjava.io.IOExceptionprotected YAMLParser _createParser(java.io.InputStream in, com.fasterxml.jackson.core.io.IOContext ctxt) throws java.io.IOException, com.fasterxml.jackson.core.JsonParseException
_createParser in class com.fasterxml.jackson.core.JsonFactoryjava.io.IOExceptioncom.fasterxml.jackson.core.JsonParseExceptionprotected YAMLParser _createParser(java.io.Reader r, com.fasterxml.jackson.core.io.IOContext ctxt) throws java.io.IOException, com.fasterxml.jackson.core.JsonParseException
_createParser in class com.fasterxml.jackson.core.JsonFactoryjava.io.IOExceptioncom.fasterxml.jackson.core.JsonParseExceptionprotected YAMLParser _createParser(byte[] data, int offset, int len, com.fasterxml.jackson.core.io.IOContext ctxt) throws java.io.IOException, com.fasterxml.jackson.core.JsonParseException
_createParser in class com.fasterxml.jackson.core.JsonFactoryjava.io.IOExceptioncom.fasterxml.jackson.core.JsonParseExceptionprotected YAMLParser _createJsonParser(java.io.InputStream in, com.fasterxml.jackson.core.io.IOContext ctxt) throws java.io.IOException, com.fasterxml.jackson.core.JsonParseException
_createJsonParser in class com.fasterxml.jackson.core.JsonFactoryjava.io.IOExceptioncom.fasterxml.jackson.core.JsonParseExceptionprotected com.fasterxml.jackson.core.JsonParser _createJsonParser(java.io.Reader r,
com.fasterxml.jackson.core.io.IOContext ctxt)
throws java.io.IOException,
com.fasterxml.jackson.core.JsonParseException
_createJsonParser in class com.fasterxml.jackson.core.JsonFactoryjava.io.IOExceptioncom.fasterxml.jackson.core.JsonParseExceptionprotected YAMLParser _createJsonParser(byte[] data, int offset, int len, com.fasterxml.jackson.core.io.IOContext ctxt) throws java.io.IOException, com.fasterxml.jackson.core.JsonParseException
_createJsonParser in class com.fasterxml.jackson.core.JsonFactoryjava.io.IOExceptioncom.fasterxml.jackson.core.JsonParseExceptionprotected YAMLGenerator _createGenerator(java.io.Writer out, com.fasterxml.jackson.core.io.IOContext ctxt) throws java.io.IOException
_createGenerator in class com.fasterxml.jackson.core.JsonFactoryjava.io.IOExceptionprotected YAMLGenerator _createJsonGenerator(java.io.Writer out, com.fasterxml.jackson.core.io.IOContext ctxt) throws java.io.IOException
_createJsonGenerator in class com.fasterxml.jackson.core.JsonFactoryjava.io.IOExceptionprotected YAMLGenerator _createUTF8Generator(java.io.OutputStream out, com.fasterxml.jackson.core.io.IOContext ctxt) throws java.io.IOException
_createUTF8Generator in class com.fasterxml.jackson.core.JsonFactoryjava.io.IOException@Deprecated protected YAMLGenerator _createUTF8JsonGenerator(java.io.OutputStream out, com.fasterxml.jackson.core.io.IOContext ctxt) throws java.io.IOException
_createUTF8JsonGenerator in class com.fasterxml.jackson.core.JsonFactoryjava.io.IOExceptionprotected java.io.Writer _createWriter(java.io.OutputStream out,
com.fasterxml.jackson.core.JsonEncoding enc,
com.fasterxml.jackson.core.io.IOContext ctxt)
throws java.io.IOException
_createWriter in class com.fasterxml.jackson.core.JsonFactoryjava.io.IOExceptionprotected java.io.Reader _createReader(java.io.InputStream in,
com.fasterxml.jackson.core.JsonEncoding enc,
com.fasterxml.jackson.core.io.IOContext ctxt)
throws java.io.IOException
java.io.IOExceptionprotected java.io.Reader _createReader(byte[] data,
int offset,
int len,
com.fasterxml.jackson.core.JsonEncoding enc,
com.fasterxml.jackson.core.io.IOContext ctxt)
throws java.io.IOException
java.io.IOExceptionCopyright © 2013. All Rights Reserved.