IO flow analysis

IO streams:
1. The character stream
1.1 Reader (abstract)
1.1.1 character input stream buffer with the BufferedReader
1.1.2 InputStreamReader converts the input character stream
1.1.2.1 FileReader file input stream of characters
1.1.3 StringReader read from a String
1.1. 4 PipedReader input stream conduit
1.1.5 ByteArrayReader
1.1.6 CharArrayReader from reading from a CharArray
1.1.7 FilterReader
1.1.7.1PushbackReader retracted buffer
1.2 Writer (abstract)
1.2.1 BufferedWriter, with a buffer output stream of characters
1.2.2 OutputStreamWriter character converting the input stream
1.2.2.1 FileWriter file output stream of characters
1.2.3 PrinterWriter the byte stream, a character stream being encapsulated as print streams
1.2.4 StringWriter write from a String
1.2.5 PipedWriter output stream conduit
1.2.6 CharArrayWriter from a write CharArray
1.2 of FilterWriter .7
2. byte stream
2.1 InputStream (abstract)
2.1.1 FileInputStream file input stream of bytes
2.1.2 FilterInputStream filter input stream of bytes
2.1.2.1 BufferedInputStream input stream with the buffer byte
2.1.2.2 DataInputStream data input stream
2.1.2.3 a PushbackInputStream
2.1.3 object input stream the ObjectInputStream
2.1 .4 PipedInputStream input stream conduit
2.1.5 SequenceInputStream combined stream
2.1.6 a StringBufferInputStream
2.1.7 A ByteArrayInputStream input stream memory
2.2 the OutputStream (abstract)
2.2.1 a FileOutputStream file output stream of bytes
2.2.2 FilterOutputStream filter output stream of bytes
2.2. 2.1 BufferedOutputStream with a buffer output stream of bytes
2.2.2.2 DataOutputStream data output stream
2.2.2.3 PrintStream the print stream into a byte stream encapsulated
2.2.3 ObjectOutputStream output stream objects
2.2.4 PipedOutputStream output stream conduit
2.2.5 ByteArrayOutputStream memory output stream

RandomAccessFile random access file can jump to anywhere in the file read and write data
RandomAccessFile (File File, String MODE)
RandomAccessFile (String name, String MODE)
MODE meanings:
"R & lt": opened in read-only
"rw": to read, write, open the
"rws": read, write, open way, "s" represents a synchronous (sync)
"RWD": read, write, open the

Guess you like

Origin blog.51cto.com/mufeng219/2438157