io.netty.handler.codec.xml.XmlFrameDecoder.class Maven / Gradle / Ivy
???? 2 ? *io/netty/handler/codec/xml/XmlFrameDecoder +io/netty/handler/codec/ByteToMessageDecoder XmlFrameDecoder.java maxFrameLength I (I)V ()V
"java/lang/IllegalArgumentException
%maxFrameLength must be a positive int (Ljava/lang/String;)V
this ,Lio/netty/handler/codec/xml/XmlFrameDecoder; decode T(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Ljava/util/List;)V java/lang/Exception io/netty/buffer/ByteBuf writerIndex ()I
readableBytes "
# skipBytes (I)Lio/netty/buffer/ByteBuf; % &
' fail (J)V ) *
+ &io/netty/channel/ChannelHandlerContext - java/util/List / readerIndex 1
2 getByte (I)B 4 5
6 java/lang/Character 8 isWhitespace (I)Z : ;
9 < +(Lio/netty/channel/ChannelHandlerContext;)V ) >
? isValidStartCharForXmlElement (B)Z A B
C isCommentBlockStart (Lio/netty/buffer/ByteBuf;I)Z E F
G isCDATABlockStart I F
J extractFrame 6(Lio/netty/buffer/ByteBuf;II)Lio/netty/buffer/ByteBuf; L M
N add (Ljava/lang/Object;)Z P Q 0 R peekFurtherAheadIndex
peekAheadByte B peekBehindByte readByte i frame Lio/netty/buffer/ByteBuf; ctx (Lio/netty/channel/ChannelHandlerContext; in out $Ljava/util/List; Ljava/util/List; openingBracketFound Z atLeastOneXmlElementFound inCDATASection openBracketsCount J length leadingWhiteSpaceCount bufferLength xmlElementLength ,io/netty/handler/codec/TooLongFrameException l java/lang/StringBuilder n
o frame length exceeds q append -(Ljava/lang/String;)Ljava/lang/StringBuilder; s t
o u (I)Ljava/lang/StringBuilder; s w
o x : z (J)Ljava/lang/StringBuilder; s |
o } - discarded toString ()Ljava/lang/String; ? ?
o ?
m
- discarding ? frameLength .io/netty/handler/codec/CorruptedFrameException ? ,frame contains content before the xml starts ?
? fireExceptionCaught ?(Ljava/lang/Throwable;)Lio/netty/channel/ChannelHandlerContext; ? ? . ? copy (II)Lio/netty/buffer/ByteBuf; ? ?
? buffer index b Code LocalVariableTable LineNumberTable
StackMapTable LocalVariableTypeTable
Exceptions Signature h(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Ljava/util/List;)V
SourceFile ! ? p *? ?
? Y? ?*? ? ? ? J K L N O ?
? ? x #666 76 6
,? !6*? ? ,,? $? (W*?? ,?,? 36??,? 76
?
? =? ?
?|?