org.postgresql.core.PGStream.class Maven / Gradle / Ivy
???? 2]
G ? Y ? ?
? ?
? ?
? ?
?
?
Y ? ?
? ?
Y ? Y ? Y ?
Y ? Y ? Y ?
?
?
? ?
? ?
? ?
?
? Y ? Y ? Y ?
? ? ?
?
? ? ? ?
# ?
? ?
? ? ? ?
) ?
)
)
)
Y
?
2 ?
?
Y
Y ^
Y
Y
Y
Y
?
H
2 ?
Y
M
?!
?!"#
$ %&
Q'
? ?
?
?( InnerClasses hostSpec Lorg/postgresql/util/HostSpec; _int4buf [B _int2buf
connection Ljava/net/Socket; pg_input 0Lorg/postgresql/core/VisibleBufferedInputStream; pg_output Ljava/io/OutputStream; streamBuffer encoding Lorg/postgresql/core/Encoding; encodingWriter Ljava/io/Writer; "(Lorg/postgresql/util/HostSpec;I)V Code LineNumberTable LocalVariableTable this Lorg/postgresql/core/PGStream; timeout I socket
Exceptions !(Lorg/postgresql/util/HostSpec;)V
Deprecated getHostSpec ()Lorg/postgresql/util/HostSpec; getSocket ()Ljava/net/Socket; hasMessagePending ()Z
StackMapTable changeSocket (Ljava/net/Socket;)V getEncoding ()Lorg/postgresql/core/Encoding; setEncoding !(Lorg/postgresql/core/Encoding;)V interceptor getEncodingWriter ()Ljava/io/Writer; SendChar (I)V val SendInteger4 SendInteger2 Send ([B)V buf ([BI)V siz ([BII)V i off bufamt() PeekChar ()I c ReceiveChar ReceiveInteger4 ReceiveInteger2
ReceiveString (I)Ljava/lang/String; len res Ljava/lang/String; ()Ljava/lang/String; ReceiveTupleV3 ()[[B oome Ljava/lang/OutOfMemoryError; l_size l_msgSize l_nf answer [[B oom ? ReceiveTupleV2 (IZ)[[B isNull Z nf bin bim bitmask whichbit whichbyte Receive (I)[B w s Skip size J
SendStream (Ljava/io/InputStream;I)V readCount ioe Ljava/io/IOException; count inStream Ljava/io/InputStream; remaining expectedLength* ? flush ()V
ReceiveEOF+ close
SourceFile
PGStream.java k ? [ \ java/net/Socket java/net/InetSocketAddress,- ?. ? k/01 ? US-ASCII234 ? ? _ ^ ] ^ k l ` a b c5 ?67*89 .org/postgresql/core/VisibleBufferedInputStream k ? java/io/BufferedOutputStream:; k< d e g h i j= ? ? org/postgresql/core/PGStream$1 k> ?? java/io/IOException +No encoding has been set on this connection k@)A ?A ? java/lang/Short java/lang/StringBuilder 9Tried to send an out-of-range integer as a 2-byte value: BCBDE ? ? ?A ?F ? java/io/EOFExceptionG ?GHIJKLM ?NOPQR ? ? ? ? ? ? ? java/lang/OutOfMemoryError ? ? ? ?GS f ^ EPremature end of input stream, expected {0} bytes, but only read {1}. java/lang/Object java/lang/Integer k ?TUV ? ? #org/postgresql/core/PGBindException kW ? ? !org/postgresql/util/PSQLException %Expected an EOF from server, got: {0}UXYZ[ k\ org/postgresql/core/PGStream java/io/OutputStream java/io/InputStream java/sql/SQLException org/postgresql/util/HostSpec getHost getPort (Ljava/lang/String;I)V connect (Ljava/net/SocketAddress;I)V org/postgresql/core/Encoding getJVMEncoding 2(Ljava/lang/String;)Lorg/postgresql/core/Encoding; available getInputStream ()Ljava/io/InputStream;
setTcpNoDelay (Z)V getOutputStream ()Ljava/io/OutputStream; (Ljava/io/OutputStream;I)V java/io/Writer 7(Lorg/postgresql/core/PGStream;Ljava/io/OutputStream;)V ((Ljava/io/OutputStream;)Ljava/io/Writer; (Ljava/lang/String;)V write append -(Ljava/lang/String;)Ljava/lang/StringBuilder; (I)Ljava/lang/StringBuilder; toString peek read ([B)I ensureBytes (I)Z getBuffer ()[B getIndex decode ([BII)Ljava/lang/String; skip (J)J scanCStringLength ([BII)I org/postgresql/util/GT tr 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; (Ljava/io/IOException;)V 8(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String; org/postgresql/util/PSQLState COMMUNICATION_ERROR Lorg/postgresql/util/PSQLState; 4(Ljava/lang/String;Lorg/postgresql/util/PSQLState;)V ! Y G [ \ ] ^ _ ^ ` a b c d e f ^ g h i j k l m ? B*? *+? ? Y? N-? Y+? +? ? ? *-?
*? ?
*?? *?? ? n &