-
java.io.OutputStream -> Object // 추상 클래스.close().write()java.io.InputStream -> Object // 추상 클래스
.close()
.read()java.io.FileOutputStream -> OutputStreamjava.io.FileInputStream -> InputStreamjava.io.ByteArrayOutputStreamjava.io.ByteArrayInputStream -> java.io.InputStreamjava.io.PipedInputStreamjava.io.PipedOutputStreamjava.io.BufferedOutputStream -> FilterOutputStream.flush()java.io.BufferedInputStream -> FilterInputStream.available()java.io.DataOutputStream -> FilterInputStream.writeChar().writeUTF().writeByte().writeShort().writeInt().writeFloat().writeDouble()java.io.DataInputStream -> FilterInputStream.readChar().readUTF().readByte().readFully().readDouble()java.io.PrintStream -> FilterOutputStream.print().println().printf() // 자바 5.0ObjectOutput // 인터페이스.writeObject()ObjectInput // 인터페이스.readObject()Externalizable.writeExternal().readExternal()java.io.ObjectOutputStream.close().writeObject().flush()java.io.ObjectInputStreamA serialization stream header is read from the stream and verified. This constructor will block until the corresponding ObjectOutputStream has written and flushed the header..close().readObject()java.io.Reader // abstract.close()java.io.InputStreamReader -> Readerjava.io.FileReader -> InputStreamReaderjava.io.BufferedReader -> Reader.close().readLine()java.io.OutputStreamWriter -> Writerjava.io.FileWriter -> OutputStreamWriterjava.io.BufferedWriter -> Writerjava.io.PrintWriter -> Writer.close().println()System.out // static; java.io.PrintStream.print().println().printf() // 자바 5.0System.in // static; InputStream.read()System.err // static.println();참조 사이트:
https://docs.oracle.com/javase/8/docs/technotes/guides/lang/resources.html