com.huawei.gauss200.jdbc.util.ReaderInputStream.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of huaweicloud-dws-jdbc Show documentation
Show all versions of huaweicloud-dws-jdbc Show documentation
Data Warehouse Service JDBC driver
The newest version!
???? 4 ? p
q
9 r s t u
v w x y
z { |
} ~
} ?
? ? ?
? ? ? ? ?
r
} ? ?
r ?
?
? ?
} ?
? ?
?
?
? ?
? ?
? ?
W ?
} ?
? ?
?
? ?
] ?
] ?
? ?
- r ?
/ r
} ?
? ?
} ?
?
W ?
? ? ?
z ? ? DEFAULT_CHAR_BUFFER_SIZE I
ConstantValue UTF_8 Ljava/nio/charset/Charset; reader Ljava/io/Reader; encoder !Ljava/nio/charset/CharsetEncoder; bbuf Ljava/nio/ByteBuffer; cbuf Ljava/nio/CharBuffer;
endOfInput Z oneByte [B $assertionsDisabled (Ljava/io/Reader;)V Code LineNumberTable LocalVariableTable this 1Lcom/huawei/gauss200/jdbc/util/ReaderInputStream; (Ljava/io/Reader;I)V charBufferSize
StackMapTable ? advance ()V n result Ljava/nio/charset/CoderResult; ?
Exceptions ? checkEncodeResult !(Ljava/nio/charset/CoderResult;)V ? read ()I res ([BII)I remaining b off len totalRead close
SourceFile ReaderInputStream.java /com/huawei/gauss200/jdbc/util/ReaderInputStream M T M Y J K "java/lang/IllegalArgumentException reader cannot be null M ? 'charBufferSize must be at least 2 chars @ A > ? ? ? ? B C ? ? ? D E ? ? ? ? ? F G L I H I java/lang/AssertionError ? ? java/lang/StringBuilder Cadvance() should be called when output byte buffer is empty. bbuf: ? ? ? ?
, as string: ? ? ? ? M ? g d ? ? ? ? c ? ? ? ? ` a ? ? ? ? ? Y c ? java/lang/NullPointerException #java/lang/IndexOutOfBoundsException ? ? ? ? ? X Y l Y ? ? ? UTF-8 ? ? java/io/InputStream java/io/Reader java/nio/charset/CoderResult java/io/IOException )java/nio/charset/CharacterCodingException (Ljava/lang/String;)V java/nio/charset/Charset
newEncoder #()Ljava/nio/charset/CharsetEncoder; java/nio/ByteBuffer allocate (I)Ljava/nio/ByteBuffer; flip ()Ljava/nio/Buffer; java/nio/CharBuffer (I)Ljava/nio/CharBuffer; hasRemaining ()Z append -(Ljava/lang/String;)Ljava/lang/StringBuilder; -(Ljava/lang/Object;)Ljava/lang/StringBuilder; asCharBuffer ()Ljava/nio/CharBuffer; toString ()Ljava/lang/String; (Ljava/lang/Object;)V clear compact (Ljava/nio/CharBuffer;)I java/nio/charset/CharsetEncoder encode K(Ljava/nio/CharBuffer;Ljava/nio/ByteBuffer;Z)Ljava/nio/charset/CoderResult; flush 5(Ljava/nio/ByteBuffer;)Ljava/nio/charset/CoderResult; isError throwException ([B)I java/lang/Math min (II)I get ([BII)Ljava/nio/ByteBuffer; java/lang/Class desiredAssertionStatus forName .(Ljava/lang/String;)Ljava/nio/charset/Charset; ! 9 : ; <