原创 Java輸入輸出(4)--轉換流
1.將字節流轉換成字符流 public class KeyinTest { public static void main(String[] args) { BufferedReader br = null;
原创 網絡編程(1)--Java的基本網絡支持
1. 測試InetAddress的簡單用法 public class InetAddressTest { public static void main(String[] args) throws Exception {
原创 Java輸入輸出(1)
1.訪問文件和目錄 import java.io.*; public class FileTest { public static void main(String[] args) throws IOExcepti
原创 網絡編程(3)--使用NIO實現Socket通信
public class NServer { private Selector selector = null; private Charset charset = Charset.forName("UTF-8"); publ
原创 Java輸入輸出(2)--流
1.流的分類。輸入、輸出都是從程序運行所在內存的角度來劃分的。 2.字節流操作的最小數據單元是8位的字節, 字符流操作的最小數據單元是16位的字符。 3.使用FileInputStream讀取自身 public class Fi
原创 Java輸入輸出(8)---序列化
public class WriteObject { public static void main(String[] args) { ObjectOutputStream oos = null; try { //
原创 Java輸入輸出(3)--OutputStream和Writer
1.使用FileOutputStream實現複製 public class FileOutputStreamTest { public static void main(String[] args) throws IO
原创 網絡編程(2)--TCP通信
1 . public class Server { public static void main(String[] args) throws IOException { ServerSocket ss = new Se
原创 Java輸入輸出(5)--從定向標準輸入/輸出
public class RedirectIn { public static void main(String[] args) { FileInputStream fis = null; try { fis =
原创 Java輸入輸出(7)---向指定文件,指定位置插入內容
public class InsertContent { public static void insert(String fileName,long pos,String insertContent) throws IOExcep
原创 JAVA輸入輸出(6)--Java虛擬機讀寫其他進程的數據
public class ReadFromProcess { public static void main(String[] args) { BufferedReader br = null;
原创 SQLAlchemy技術文檔(中文版)(上)
原文鏈接:http://www.cnblogs.com/iwangzc/p/4112078.html(感謝作者的分享) 1.版本檢查 import sqlalchemy sqlalchemy.__version__ 2.連接 f
原创 Android開發學習總結(一)——搭建最新版本的Android開發環境
原博客網址:http://www.cnblogs.com/xdp-gacl/p/4322165.html 感謝博主。 最近由於工作中要負責開發一款Android的App,之前都是做JavaWeb的開發,Android開發雖然有所瞭解
原创 SQLAlchemy技術文檔(中文版)(中)
原文鏈接:http://www.cnblogs.com/iwangzc/p/4114913.html 10.建立聯繫(外鍵) 是時候考慮怎樣映射和查詢一個和Users表關聯的第二張表了。假設我們系統的用戶可以存儲任意數量的em
原创 Python標準庫14 數據庫 (sqlite3)
Python標準庫14 數據庫 (sqlite3) 作者:Vamei 出處:http://www.cnblogs.com/vamei 歡迎轉載,也請保留這段聲明。謝謝! Python自帶一個輕量級的關係型數據庫SQLite。這一數據庫