Java_IO_Architecture
2019-11-29 15:13:47 0 举报
Java SDK中IO和NIO结构图一览
作者其他创作
大纲/内容
Reader
+ read() : int+ read(byte[]) : int
BufferedReader
FileChannel
InputStreamReader
- sd : StreamDecoder
+ InputStreamReader(InputStream in)
InterruptibleChannel
Readable
+ read(CharBuffer cb) : int
BufferedOutputStream
SeekableByteChannel
+ position() : long+ size() : long
WriteableByteChannel
+ write(ByteBuffer src ) : int
SelectableChannel
+ provider() : SelecterProvider+ isBlocking() : boolean
InputStream
Writer
AbstractSelectableChannel
- final provider : SelectorProvider- keys : SelectionKey[]- nonBlocking : boolean
+final provider() : SelecterProvideor+ final configureBlocking(boolean block):SelectableChannel+final isBlocking() : boolean
$ SocketOutputStream
NetworkChannel
+ bind(SocketAddress local) : NetworkChannel+ getLocalAddress() : SocketAddress
Appendable
+ append(char c) : Appendable
FileReader
+ FileReader(File file)
AutoCloseable
+ close(): void
FileOutputStream
- fd : FileDescriptor- path : String- channel : FileChannel
FileOutputStream(File file)
ReadableByteChannel
+ read(ByteBuffer dst) : int
ServerSockerChannel
AbstractInterruptibleChannel
- closed : boolean
+ final close() : void + final isOpen() : boolean
OutputStream
+ write(byte[]) : void
Closeable
+ close() : void
ScatteringByteChannel
+ read(ByteBuffer[] dst) : long
GatheringByteChannel
+ write(ByteBuffer[] src) : long
PrintStream
- charOut : OutputStreamWriter
+PrintStream(OutputStream out) + println() : void+ println(String) : void
ServerChannel
+ open() : SockerChannel+ bind(SocketAddress local) : SockerChannel + connect(SocketAddress remote) : boolean+ socket(): Socket+ isConnected() :boolean
ByteChannel
Flushable
+ flush() : void
Channel
+ isOpen( ) : boolean
FilterOutputStream
# out : OutputStream
+ FilterOutputStream(OutputStream out)
收藏
0 条评论
下一页