Từ một stream

Một phần của tài liệu IOStreams (Trang 84 - 88)

BufferedWriter cung cấp cách thức ghi các chuỗi ra stream dưới dạng đọc được chuỗi ra stream dưới dạng đọc được

PrintWriter cung cấp cách thức ghi các chuỗi, số nguyên, số thực, ... ra stream dưới dạng đọc được nguyên, số thực, ... ra stream dưới dạng đọc được

Khoa CNTT – ĐH Nông Lâm TP. HCM 01/2007 85/105 PrintWrit er

PrintWriter(arg0 : OutputStream, autoFlush : boolean) PrintWriter(arg0 : OutputStream)

PrintWriter(arg0 : Writer, autoFlush : boolean) PrintWriter(arg0 : Writer)

flush() : void close() : void

checkError() : boolean setError() : void

write(arg0 : int) : void

write(arg0 : char[], arg1 : int, arg2 : int) : void write(arg0 : char[]) : void

write(arg0 : String, arg1 : int, arg2 : int) : void write(arg0 : String) : void

print(arg0 : boolean) : void print(arg0 : char) : void print(arg0 : int) : void print(arg0 : long) : void print(arg0 : float) : void print(arg0 : double) : void print(arg0 : char[]) : void print(arg0 : String) : void print(arg0 : Object) : void println() : void

println(arg0 : boolean) : void println(arg0 : char) : void println(arg0 : int) : void println(arg0 : long) : void println(arg0 : float) : void println(arg0 : double) : void println(arg0 : char[]) : void println(arg0 : String) : void println(arg0 : Object) : void

Khoa CNTT – ĐH Nông Lâm TP. HCM 01/2007 86/105

BufferedReader BufferedReader(arg0 : Reader)

BufferedReader(arg0 : Reader, arg1 : int) read() : int

read(arg0 : char[], arg1 : int, arg2 : int) : int readLine(arg0 : boolean) : String

readLine() : String

skip(arg0 : long) : long ready () : boolean

markSupported() : boolean mark(arg0 : int) : void

reset() : void close() : void (from io) Reader (from io) Writer (from io) BufferedWriter

BufferedWriter(arg0 : Writer, arg1 : int) BufferedWriter(arg0 : Writer)

flushBuffer() : void write(arg0 : int) : void

write(arg0 : char[], arg1 : int, arg2 : int) : void write(arg0 : String, arg1 : int, arg2 : int) : void newLine() : void flush() : void close() : void (from io) BufferedReader BufferedReader

Khoa CNTT – ĐH Nông Lâm TP. HCM 01/2007 87/105 BufferedReader

BufferedReader(arg0 : Reader)

BufferedReader(arg0 : Reader, arg1 : int) read() : int

read(arg0 : char[], arg1 : int, arg2 : int) : int readLine(arg0 : boolean) : String

readLine() : String

skip(arg0 : long) : long ready () : boolean

markSupported() : boolean mark(arg0 : int) : void

reset() : void clos e() : void

(from io) Reader (from io) Writer (from io) BufferedWriter

BufferedWriter(arg0 : Writer, arg1 : int) BufferedWriter(arg0 : Writer)

flushBuffer() : void write(arg0 : int) : void

write(arg0 : char[], arg1 : int, arg2 : int) : void write(arg0 : String, arg1 : int, arg2 : int) : void newLine() : void flush() : void close() : void (from io) BufferedWriter BufferedWriter

Khoa CNTT – ĐH Nông Lâm TP. HCM 01/2007 88/105

java.io.OutputStreamWriter

java.io.OutputStreamWriter

Một phần của tài liệu IOStreams (Trang 84 - 88)

Tải bản đầy đủ (PPT)

(105 trang)