1、序列化:程式中的動態物件轉化為磁碟上的靜態資料。用於儲存物件狀態,有利於快速查詢,不用序列化,也可以儲存,但工作量很大。
2、流的基礎操作
filestream fs1 = newfilestream(sourcepath, filemode.open, fileaccess.read);
//filestream fs1=file.open(sourcepath,filemode.read);
//filestream fs1=file.openread(sourcepath);
filestream fs2 = new
filestream(destpath, filemode.create, fileaccess.write);
//filestream fs1=file.open(destpath,filemode.write);
//filestream fs1=file.openwrite(destpath);
using(fs1)
}
PostgreSQL流複製配置
pg主備流複製的核心部分由walsender,walreceiver和startup三個程序組成。配置環境 主機名 ip位址 角色 資料目錄 postgres202 192.168.1.202 primary home postgres data postgres203 192.168.1.203 ...
資料操作流 記憶體操作流 列印流
資料操作流 目前基本沒用 datasource.自己查詢把 記憶體操作流 用來處理臨時儲存資訊的,程式結束時,資料就從記憶體中消失 操作位元組 bytearrayoutputstream 輸出流 寫入操作 bytearrayinputstream 輸入流 讀取資料 字元陣列 chararrayrea...
Java IO(字元流)複製檔案
1.複製檔案 包含中文 param path 目標檔案 param target 需要複製到的指定檔案 return boolean true 複製成功 false 複製失敗 throws ioexception public static boolean copy string path,stri...