Class CborXContent

java.lang.Object
org.opensearch.common.xcontent.cbor.CborXContent
All Implemented Interfaces:
XContentContraints, org.opensearch.core.xcontent.XContent

public class CborXContent extends Object implements org.opensearch.core.xcontent.XContent, XContentContraints
A CBOR based content implementation using Jackson.
  • Field Details

    • USE_FAST_DOUBLE_WRITER

      public static final boolean USE_FAST_DOUBLE_WRITER
    • cborXContent

      public static final CborXContent cborXContent
  • Method Details

    • contentBuilder

      public static org.opensearch.core.xcontent.XContentBuilder contentBuilder() throws IOException
      Throws:
      IOException
    • mediaType

      public org.opensearch.core.xcontent.MediaType mediaType()
      Specified by:
      mediaType in interface org.opensearch.core.xcontent.XContent
    • streamSeparator

      public byte streamSeparator()
      Specified by:
      streamSeparator in interface org.opensearch.core.xcontent.XContent
    • createGenerator

      public org.opensearch.core.xcontent.XContentGenerator createGenerator(OutputStream os, Set<String> includes, Set<String> excludes) throws IOException
      Specified by:
      createGenerator in interface org.opensearch.core.xcontent.XContent
      Throws:
      IOException
    • createParser

      public org.opensearch.core.xcontent.XContentParser createParser(org.opensearch.core.xcontent.NamedXContentRegistry xContentRegistry, org.opensearch.core.xcontent.DeprecationHandler deprecationHandler, String content) throws IOException
      Specified by:
      createParser in interface org.opensearch.core.xcontent.XContent
      Throws:
      IOException
    • createParser

      public org.opensearch.core.xcontent.XContentParser createParser(org.opensearch.core.xcontent.NamedXContentRegistry xContentRegistry, org.opensearch.core.xcontent.DeprecationHandler deprecationHandler, InputStream is) throws IOException
      Specified by:
      createParser in interface org.opensearch.core.xcontent.XContent
      Throws:
      IOException
    • createParser

      public org.opensearch.core.xcontent.XContentParser createParser(org.opensearch.core.xcontent.NamedXContentRegistry xContentRegistry, org.opensearch.core.xcontent.DeprecationHandler deprecationHandler, byte[] data) throws IOException
      Specified by:
      createParser in interface org.opensearch.core.xcontent.XContent
      Throws:
      IOException
    • createParser

      public org.opensearch.core.xcontent.XContentParser createParser(org.opensearch.core.xcontent.NamedXContentRegistry xContentRegistry, org.opensearch.core.xcontent.DeprecationHandler deprecationHandler, byte[] data, int offset, int length) throws IOException
      Specified by:
      createParser in interface org.opensearch.core.xcontent.XContent
      Throws:
      IOException
    • createParser

      public org.opensearch.core.xcontent.XContentParser createParser(org.opensearch.core.xcontent.NamedXContentRegistry xContentRegistry, org.opensearch.core.xcontent.DeprecationHandler deprecationHandler, Reader reader) throws IOException
      Specified by:
      createParser in interface org.opensearch.core.xcontent.XContent
      Throws:
      IOException