写入读取.ppt
文本预览下载声明
I/O;以byte為單位的資料流
8bits
InputStream
OutputStream
以character為單位的資料流
16bits(Unicode)
Reader
Writer;Stream Classes;Node;Node Stream 類別;讀取及寫入資料演算法;;InputStream類別;public int available() throws IOException
public long skip(long?n) throws IOException
public void mark(int?readlimit)
public void reset() throws IOException
public boolean markSupported()
public void close() throws IOException;OutputStream類別;;Reader類別;;Writer類別;;Reader vs. InputStream;Writer vs. OutputStream;FIleInputStream類別;;FileReader類別;FileOutputStream類別;FileWriter類別;資料串流連結;Filter Stream類別;;物件序列化(Serialization);Serializable;ObjectOutputStream;常用方法
public final void writeObject(Object?obj) throws IOException
public void writeBoolean(boolean?val) throws IOException
public void writeChar(int?val) throws IOException
public void writeInt(int?val) throws IOException
public void writeDouble(double?val) throws IOException
public void writeChars(String?str) throws IOException;ObjectInputStream;常用方法
public final Object readObject() throws IOException, ClassNotFoundException
public boolean readBoolean() throws IOException
public char readChar() throws IOException
public int readInt() throws IOException
public double readDouble() throws IOException
显示全部