Class CborXContent

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

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

    Fields
    Modifier and Type
    Field
    Description
    static final CborXContent
     
    static final int
     
    static final boolean
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.opensearch.core.xcontent.XContentBuilder
     
    org.opensearch.core.xcontent.XContentGenerator
    createGenerator(OutputStream os, Set<String> includes, Set<String> excludes)
     
    org.opensearch.core.xcontent.XContentParser
    createParser(org.opensearch.core.xcontent.NamedXContentRegistry xContentRegistry, org.opensearch.core.xcontent.DeprecationHandler deprecationHandler, byte[] data)
     
    org.opensearch.core.xcontent.XContentParser
    createParser(org.opensearch.core.xcontent.NamedXContentRegistry xContentRegistry, org.opensearch.core.xcontent.DeprecationHandler deprecationHandler, byte[] data, int offset, int length)
     
    org.opensearch.core.xcontent.XContentParser
    createParser(org.opensearch.core.xcontent.NamedXContentRegistry xContentRegistry, org.opensearch.core.xcontent.DeprecationHandler deprecationHandler, InputStream is)
     
    org.opensearch.core.xcontent.XContentParser
    createParser(org.opensearch.core.xcontent.NamedXContentRegistry xContentRegistry, org.opensearch.core.xcontent.DeprecationHandler deprecationHandler, Reader reader)
     
    org.opensearch.core.xcontent.XContentParser
    createParser(org.opensearch.core.xcontent.NamedXContentRegistry xContentRegistry, org.opensearch.core.xcontent.DeprecationHandler deprecationHandler, String content)
     
    org.opensearch.core.xcontent.MediaType
     
    byte
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.opensearch.core.xcontent.XContent

    createGenerator
  • Field Details

    • DEFAULT_MAX_STRING_LEN

      public static final int DEFAULT_MAX_STRING_LEN
    • 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