Class YamlXContent

java.lang.Object
org.xbib.content.yaml.YamlXContent
All Implemented Interfaces:
org.xbib.content.XContent

public class YamlXContent extends Object implements org.xbib.content.XContent
A YAML based content implementation using Jackson.
  • Constructor Details

    • YamlXContent

      public YamlXContent()
  • Method Details

    • yamlContent

      public static YamlXContent yamlContent()
    • yamlFactory

      public static com.fasterxml.jackson.dataformat.yaml.YAMLFactory yamlFactory()
    • contentBuilder

      public static org.xbib.content.XContentBuilder contentBuilder() throws IOException
      Throws:
      IOException
    • contentBuilder

      public static org.xbib.content.XContentBuilder contentBuilder(OutputStream outputStream) throws IOException
      Throws:
      IOException
    • name

      public String name()
      Specified by:
      name in interface org.xbib.content.XContent
    • createGenerator

      public org.xbib.content.XContentGenerator createGenerator(OutputStream os) throws IOException
      Specified by:
      createGenerator in interface org.xbib.content.XContent
      Throws:
      IOException
    • createGenerator

      public org.xbib.content.XContentGenerator createGenerator(Writer writer) throws IOException
      Specified by:
      createGenerator in interface org.xbib.content.XContent
      Throws:
      IOException
    • createParser

      public org.xbib.content.XContentParser createParser(String content) throws IOException
      Specified by:
      createParser in interface org.xbib.content.XContent
      Throws:
      IOException
    • createParser

      public org.xbib.content.XContentParser createParser(InputStream is) throws IOException
      Specified by:
      createParser in interface org.xbib.content.XContent
      Throws:
      IOException
    • createParser

      public org.xbib.content.XContentParser createParser(byte[] data) throws IOException
      Specified by:
      createParser in interface org.xbib.content.XContent
      Throws:
      IOException
    • createParser

      public org.xbib.content.XContentParser createParser(byte[] data, int offset, int length) throws IOException
      Specified by:
      createParser in interface org.xbib.content.XContent
      Throws:
      IOException
    • createParser

      public org.xbib.content.XContentParser createParser(Reader reader) throws IOException
      Specified by:
      createParser in interface org.xbib.content.XContent
      Throws:
      IOException
    • isXContent

      public boolean isXContent(byte[] bytes, int offset, int len)
      Specified by:
      isXContent in interface org.xbib.content.XContent