java.lang.Object
org.xbib.content.yaml.YamlXContent
- All Implemented Interfaces:
org.xbib.content.XContent
A YAML based content implementation using Jackson.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.xbib.content.XContentBuilderstatic org.xbib.content.XContentBuildercontentBuilder(OutputStream outputStream) org.xbib.content.XContentGeneratororg.xbib.content.XContentGeneratorcreateGenerator(Writer writer) org.xbib.content.XContentParsercreateParser(byte[] data) org.xbib.content.XContentParsercreateParser(byte[] data, int offset, int length) org.xbib.content.XContentParserorg.xbib.content.XContentParsercreateParser(Reader reader) org.xbib.content.XContentParsercreateParser(String content) booleanisXContent(byte[] bytes, int offset, int len) name()static YamlXContentstatic com.fasterxml.jackson.dataformat.yaml.YAMLFactory
-
Constructor Details
-
YamlXContent
public YamlXContent()
-
-
Method Details
-
yamlContent
-
yamlFactory
public static com.fasterxml.jackson.dataformat.yaml.YAMLFactory yamlFactory() -
contentBuilder
- Throws:
IOException
-
contentBuilder
public static org.xbib.content.XContentBuilder contentBuilder(OutputStream outputStream) throws IOException - Throws:
IOException
-
name
- Specified by:
namein interfaceorg.xbib.content.XContent
-
createGenerator
- Specified by:
createGeneratorin interfaceorg.xbib.content.XContent- Throws:
IOException
-
createGenerator
- Specified by:
createGeneratorin interfaceorg.xbib.content.XContent- Throws:
IOException
-
createParser
- Specified by:
createParserin interfaceorg.xbib.content.XContent- Throws:
IOException
-
createParser
- Specified by:
createParserin interfaceorg.xbib.content.XContent- Throws:
IOException
-
createParser
- Specified by:
createParserin interfaceorg.xbib.content.XContent- Throws:
IOException
-
createParser
public org.xbib.content.XContentParser createParser(byte[] data, int offset, int length) throws IOException - Specified by:
createParserin interfaceorg.xbib.content.XContent- Throws:
IOException
-
createParser
- Specified by:
createParserin interfaceorg.xbib.content.XContent- Throws:
IOException
-
isXContent
public boolean isXContent(byte[] bytes, int offset, int len) - Specified by:
isXContentin interfaceorg.xbib.content.XContent
-