io.netty.channel.oio.OioByteStreamChannel.class Maven / Gradle / Ivy
???? 2 ? )io/netty/channel/oio/OioByteStreamChannel +io/netty/channel/oio/AbstractOioByteChannel OioByteStreamChannel.java +io/netty/channel/oio/OioByteStreamChannel$2 +io/netty/channel/oio/OioByteStreamChannel$1 ,io/netty/channel/RecvByteBufAllocator$Handle
%io/netty/channel/RecvByteBufAllocator Handle io/netty/channel/Channel$Unsafe io/netty/channel/Channel Unsafe CLOSED_IN Ljava/io/InputStream;
CLOSED_OUT Ljava/io/OutputStream; is os
outChannel 'Ljava/nio/channels/WritableByteChannel; (Lio/netty/channel/Channel;)V
this +Lio/netty/channel/oio/OioByteStreamChannel; parent Lio/netty/channel/Channel; activate .(Ljava/io/InputStream;Ljava/io/OutputStream;)V & java/lang/IllegalStateException ( input was set already * (Ljava/lang/String;)V ,
) - / output was set already 1 java/lang/NullPointerException 3
4 - isActive ()Z : java/io/InputStream < > java/io/OutputStream @ available ()I java/io/IOException D B C
= F ignored Ljava/io/IOException; doReadBytes (Lio/netty/buffer/ByteBuf;)I java/lang/Exception L unsafe #()Lio/netty/channel/Channel$Unsafe; N O
P recvBufAllocHandle 0()Lio/netty/channel/RecvByteBufAllocator$Handle; R S T
F io/netty/buffer/ByteBuf W maxWritableBytes Y C
X Z java/lang/Math \ min (II)I ^ _
] ` max b _
] c attemptedBytesRead (I)V e f g e C i
writeBytes (Ljava/io/InputStream;I)I k l
X m buf Lio/netty/buffer/ByteBuf; allocHandle .Lio/netty/channel/RecvByteBufAllocator$Handle; doWriteBytes (Lio/netty/buffer/ByteBuf;)V *java/nio/channels/NotYetConnectedException u ()V w
v x
readableBytes z C
X { readBytes 2(Ljava/io/OutputStream;I)Lio/netty/buffer/ByteBuf; } ~
X doWriteFileRegion (Lio/netty/channel/FileRegion;)V ? java/nio/channels/Channels ?
newChannel ?(Ljava/io/OutputStream;)Ljava/nio/channels/WritableByteChannel; ? ?
? ? io/netty/channel/FileRegion ?
transferTo +(Ljava/nio/channels/WritableByteChannel;J)J ? ? ? ????????? checkEOF ? ?
? count ()J ? ? ? ? localWritten J region Lio/netty/channel/FileRegion; written transferred ? ? ? ? java/io/EOFException ? java/lang/StringBuilder ?
? x Expected to be able to write ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? (J)Ljava/lang/StringBuilder; ? ?
? ? bytes, but only wrote ? toString ()Ljava/lang/String; ? ?
? ?
? - doClose close ? w
= ?
A ? java/lang/Throwable ?
x
x Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions
SourceFile InnerClasses!
? > *+? ? ? ! " # ?
> ? $ % ? ? I*? '?
? )Y+? .?*? 0?
? )Y2? .?+?
? 4Y5? 6?,?
? 4Y7? 6?*+? '*,? 0? ? I ! I I ? . E F H I " K &