Class CborXContent

  • All Implemented Interfaces:

    public class CborXContent
    extends java.lang.Object
    implements XContent
    A CBOR based content implementation using Jackson.
    • Field Detail

      • cborXContent

        public static final CborXContent cborXContent
    • Method Detail

      • contentBuilder

        public static XContentBuilder contentBuilder()
      • type

        public XContentType type()
        Description copied from interface: XContent
        The type this content handles and produces.
        Specified by:
        type in interface XContent
      • createGenerator

        public XContentGenerator createGenerator​( os,
                                                 java.util.Set<java.lang.String> includes,
                                                 java.util.Set<java.lang.String> excludes)
        Description copied from interface: XContent
        Creates a new generator using the provided output stream and some inclusive and/or exclusive filters. When both exclusive and inclusive filters are provided, the underlying generator will first use exclusion filters to remove fields and then will check the remaining fields against the inclusive filters.
        Specified by:
        createGenerator in interface XContent
        os - the output stream
        includes - the inclusive filters: only fields and objects that match the inclusive filters will be written to the output.
        excludes - the exclusive filters: only fields and objects that don't match the exclusive filters will be written to the output.