com.groupbyinc.flux.common.xcontent.XContentFactory.class Maven / Gradle / Ivy
???? 4 ? 3com/groupbyinc/flux/common/xcontent/XContentFactory java/lang/Object XContentFactory.java GUESS_HEADER_LENGTH I ()V
this 5Lcom/groupbyinc/flux/common/xcontent/XContentFactory; jsonBuilder 7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; java/io/IOException 0com/groupbyinc/flux/common/xcontent/XContentType JSON 2Lcom/groupbyinc/flux/common/xcontent/XContentType; contentBuilder i(Lcom/groupbyinc/flux/common/xcontent/XContentType;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;
M(Ljava/io/OutputStream;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; 3com/groupbyinc/flux/common/xcontent/XContentBuilder 5com/groupbyinc/flux/common/xcontent/json/JsonXContent jsonXContent 7Lcom/groupbyinc/flux/common/xcontent/json/JsonXContent; " # ! $ G(Lcom/groupbyinc/flux/common/xcontent/XContent;Ljava/io/OutputStream;)V &
' os Ljava/io/OutputStream; smileBuilder SMILE , - 7com/groupbyinc/flux/common/xcontent/smile/SmileXContent /
smileXContent 9Lcom/groupbyinc/flux/common/xcontent/smile/SmileXContent; 1 2 0 3 yamlBuilder YAML 6 7 5com/groupbyinc/flux/common/xcontent/yaml/YamlXContent 9 yamlXContent 7Lcom/groupbyinc/flux/common/xcontent/yaml/YamlXContent; ; < : = cborBuilder CBOR @ A 5com/groupbyinc/flux/common/xcontent/cbor/CborXContent C cborXContent 7Lcom/groupbyinc/flux/common/xcontent/cbor/CborXContent; E F D G (Lcom/groupbyinc/flux/common/xcontent/XContentType;Ljava/io/OutputStream;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;
J +
L 5
N ?
P "java/lang/IllegalArgumentException R java/lang/StringBuilder T
U No matching content type for W append -(Ljava/lang/String;)Ljava/lang/StringBuilder; Y Z
U [ -(Ljava/lang/Object;)Ljava/lang/StringBuilder; Y ]
U ^ toString ()Ljava/lang/String; ` a
U b (Ljava/lang/String;)V d
S e type outputStream
! i
0 i
: i
D i xContent b(Lcom/groupbyinc/flux/common/xcontent/XContentType;)Lcom/groupbyinc/flux/common/xcontent/XContent; $Cannot get xcontent for unknown type p 0()Lcom/groupbyinc/flux/common/xcontent/XContent; n r
s xContentType L(Ljava/lang/CharSequence;)Lcom/groupbyinc/flux/common/xcontent/XContentType; Ljava/lang/Deprecated; java/lang/CharSequence x length ()I z { y | charAt (I)C ~ y ? java/lang/Character ? isWhitespace (C)Z ? ?
? ? c C i content Ljava/lang/CharSequence; first H(Ljava/lang/CharSequence;)Lcom/groupbyinc/flux/common/xcontent/XContent; u v
? :com/groupbyinc/flux/common/xcontent/XContentParseException ? Failed to derive xcontent ?
? e n o
? 2([B)Lcom/groupbyinc/flux/common/xcontent/XContent; 4([BII)Lcom/groupbyinc/flux/common/xcontent/XContent; n ?
? data [B 8([BII)Lcom/groupbyinc/flux/common/xcontent/XContentType; u ?
? offset I(Ljava/io/InputStream;)Lcom/groupbyinc/flux/common/xcontent/XContentType; java/io/InputStream ?
markSupported ()Z ? ?
? ? =Cannot guess the xcontent type without mark/reset support on ? getClass ()Ljava/lang/Class; ? ?
???? mark (I)V ? ?
? ? read ? {
? ? reset ?
? ? ? ([BII)I ? ?
? ? java/lang/Throwable ? r current
firstBytes si Ljava/io/InputStream; 6([B)Lcom/groupbyinc/flux/common/xcontent/XContentType; bytes Jcom/groupbyinc/flux/common/fasterxml/jackson/dataformat/cbor/CBORConstants ? hasMajorType (IB)Z ? ?
? ? (I)Z ? ?
? ? b B totalLength jsonStart
ConstantValue Code LocalVariableTable LineNumberTable
Exceptions
StackMapTable
Deprecated RuntimeVisibleAnnotations
SourceFile ! ?
? / *? ? ?
? $ ? ? ? ? ? , ? ? 6 ? Y? %*? (? ? ) * ? 3 ? + ? ? .? ? ? : ? + ? 6 ? Y? 4*? (? ? ) * ? A ? 5 ? ? 8? ? ? H ? 5 ? 6 ? Y? >*? (? ? ) * ? O ? ? ? ? B? ? ? V ? ? ? 6 ? Y? H*? (? ? ) * ? ] ? I ? ? K*? ? +? K?*? .? +? M?*? 8? +? O?*? B? +? Q?? SY? UY? VX? \*? _? c? f? ? K g K h * ? &