Class XmlXContent

java.lang.Object
org.xbib.content.xml.XmlXContent
All Implemented Interfaces:
org.xbib.content.XContent

public class XmlXContent extends Object implements org.xbib.content.XContent
A XML content implementation using Jackson XML data format.
  • Constructor Details

    • XmlXContent

      public XmlXContent()
      Public constructor, used by ServiceLoader.
  • Method Details

    • 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
    • contentBuilder

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

      public static org.xbib.content.XContentBuilder contentBuilder(XmlXParams params, OutputStream outputStream) throws IOException
      Throws:
      IOException
    • xmlXContent

      public static XmlXContent xmlXContent()
    • xmlXContent

      public static XmlXContent xmlXContent(com.fasterxml.jackson.dataformat.xml.XmlFactory xmlFactory)
    • name

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

      public org.xbib.content.XContentGenerator createGenerator(OutputStream outputStream) 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