File Input Stream v File Input StreamFile file

  • Slides: 18
Download presentation

File. Input. Stream v 构造方法有: § File. Input. Stream(File file) throws File. Not. Found.

File. Input. Stream v 构造方法有: § File. Input. Stream(File file) throws File. Not. Found. Exception § File. Input. Stream(String name) throws File. Not. Found. Exception v �取数据用到 read()方法: § int read() throws IOException int read(byte[] b) throws IOException § int read(byte[] b, int off, int len) throws IOException v 例程

File. Output. Stream v File. Output. Stream与File. Input. Stream是一�,前 者是�出流,而后者是�入流,其道理是一�的,下面 列出其构造: § File. Output.

File. Output. Stream v File. Output. Stream与File. Input. Stream是一�,前 者是�出流,而后者是�入流,其道理是一�的,下面 列出其构造: § File. Output. Stream(File file) File. Output. Stream(File file, boolean append) File. Output. Stream(String name, boolean append) v 下面列出其操作方法: § void write(byte[] b) void write(byte[] b, int off, int len) void write(int b)

常用的其他低�流 v v v Input. Stream Output. Stream Byte. Array. Input. Stream Byte. Array.

常用的其他低�流 v v v Input. Stream Output. Stream Byte. Array. Input. Stream Byte. Array. Output. Stream Piped. Input. Stream Piped. Output. Stream

Data. Output. Stream v 构造方法: § Data. Output. Stream(Output. Streamout) v 功能方法 § void

Data. Output. Stream v 构造方法: § Data. Output. Stream(Output. Streamout) v 功能方法 § void write(int b) void write(byte[] b, int off, int len) void write. Boolean(boolean v) void write. Byte(int v) void write. Char(int v) void write. Short(int v) void write. Int(int v) void write. Long(long v) void write. Float(float v) void write. Double(double v) void write. UTF(String str) v 例程

Data. Input. Stream v Data. Input. Stream�似 Data. Output. Stream,�者可�� JDK API, 不再�述。 v

Data. Input. Stream v Data. Input. Stream�似 Data. Output. Stream,�者可�� JDK API, 不再�述。 v 例程

其他常用字�高�流 v 高级流通常都继承自类Filter. Output. Stream, 常用的高级流还有: § Buffered. Input. Stream § Buffered. Output. Stream

其他常用字�高�流 v 高级流通常都继承自类Filter. Output. Stream, 常用的高级流还有: § Buffered. Input. Stream § Buffered. Output. Stream § Print. Stream § Pushback. Input. Stream

其他常用的字符流 v 其他常用的低级字符流有: § Char. Array. Writer/Char. Array. Reader Piper. Writer/Piper. Reader String. Writer/String.

其他常用的字符流 v 其他常用的低级字符流有: § Char. Array. Writer/Char. Array. Reader Piper. Writer/Piper. Reader String. Writer/String. Reader v 常用的高�字符流有: § Buffered. Writer/Buffered. Reader Line. Number. Reader Print. Writer Pushback. Reader Output. Stream. Writer/Input. Stream. Reader