类结构:
Hierarchy For Package java.io
Class Hierarchy (Different order to official document)
- java.lang.Object
- java.io.InputStream
(implements java.io.Closeable
)
- java.io.ByteArrayInputStream
- java.io.FileInputStream
- java.io.FilterInputStream
- java.io.BufferedInputStream
- java.io.DataInputStream (implements java.io.DataInput )
- java.io.LineNumberInputStream
- java.io.PushbackInputStream
- java.io.ObjectInputStream (implements java.io.ObjectInput , java.io.ObjectStreamConstants )
- java.io.PipedInputStream
- java.io.SequenceInputStream
- java.io.StringBufferInputStream
- java.io.Reader
(implements java.io.Closeable
,
java.lang.Readable
)
- java.io.BufferedReader
- java.io.LineNumberReader
- java.io.CharArrayReader
- java.io.FilterReader
- java.io.PushbackReader
- java.io.InputStreamReader
- java.io.FileReader
- java.io.PipedReader
- java.io.StringReader
- java.io.BufferedReader
- ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
- java.io.OutputStream
(implements java.io.Closeable
,
java.io.Flushable
)
- java.io.ByteArrayOutputStream
- java.io.FileOutputStream
- java.io.FilterOutputStream
- java.io.BufferedOutputStream
- java.io.DataOutputStream (implements java.io.DataOutput )
- java.io.PrintStream (implements java.lang.Appendable , java.io.Closeable )
- java.io.ObjectOutputStream (implements java.io.ObjectOutput , java.io.ObjectStreamConstants )
- java.io.PipedOutputStream
- java.io.Writer
(implements java.lang.Appendable
,
java.io.Closeable
,
java.io.Flushable
)
- java.io.BufferedWriter
- java.io.CharArrayWriter
- java.io.FilterWriter
- java.io.OutputStreamWriter
- java.io.FileWriter
- java.io.PipedWriter
- java.io.PrintWriter
- java.io.StringWriter
- ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
- java.lang.Throwable
(implements java.io.Serializable
)
- java.lang.Error
- java.io.IOError
- java.lang.Exception
- java.io.IOException
- java.io.CharConversionException
- java.io.EOFException
- java.io.FileNotFoundException
- java.io.InterruptedIOException
- java.io.ObjectStreamException
- java.io.InvalidClassException
- java.io.InvalidObjectException
- java.io.NotActiveException
- java.io.NotSerializableException
- java.io.OptionalDataException
- java.io.StreamCorruptedException
- java.io.WriteAbortedException
- java.io.SyncFailedException
- java.io.UnsupportedEncodingException
- java.io.UTFDataFormatException
- java.io.IOException
- java.lang.Error
- ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
- java.io.Console (implements java.io.Flushable )
- java.io.File (implements java.lang.Comparable <T>, java.io.Serializable )
- java.io.FileDescriptor
- java.io.ObjectInputStream.GetField
- java.io.ObjectOutputStream.PutField
- java.io.ObjectStreamClass (implements java.io.Serializable )
- java.io.ObjectStreamField (implements java.lang.Comparable <T>)
- java.security.Permission
(implements java.security.Guard
,
java.io.Serializable
)
- java.security.BasicPermission
(implements java.io.Serializable
)
- java.io.SerializablePermission
- java.io.FilePermission (implements java.io.Serializable )
- java.security.BasicPermission
(implements java.io.Serializable
)
- java.io.RandomAccessFile (implements java.io.Closeable , java.io.DataInput , java.io.DataOutput )
- java.io.StreamTokenizer
- java.io.InputStream
(implements java.io.Closeable
)
Interface Hierarchy
- java.io.Closeable
- java.io.DataInput
- java.io.ObjectInput
- java.io.DataOutput
- java.io.ObjectOutput
- java.io.FileFilter
- java.io.FilenameFilter
- java.io.Flushable
- java.io.ObjectInputValidation
- java.io.ObjectStreamConstants
- java.io.Serializable
- java.io.Externalizable
Useful links:
- Java I/O Streams
- Examples Link1 Link2
引用:
Java学习笔记–Java.io: http://www.ismayday.com/?p=131 (最后的范例很有意思)
关于java.io包中主要类的结构和简单说明: http://www.javah.net/Spring/20070712/4005.html
java.io包详细解说:http://hzxdark.javaeye.com/blog/40133(写的相当好!)
JAVA IO 设计模式彻底分析: (搜索一下,始终没有找到有附图的版本)
java IO库 学习记录:http://cherishchen.javaeye.com/blog/183251
软件包 java.io 的分层结构:
http://gceclub.sun.com.cn/Java_Docs/jdk6/html/zh_CN/api/java/io/package-tree.html
http://gceclub.sun.com.cn/Java_Docs/html/zh_CN/api/java/io/package-tree.html
《java与模式》(去电驴吧,呵呵!)