导航

2017年7月2日

摘要: 1 public static void fileCopy(File in, File out) throws IOException { 2 FileChannel inChannel = new FileInputStream(in).getChannel(); 3 FileChannel outChannel = new FileOutputS... 阅读全文

posted @ 2017-07-02 16:16 天一涯 阅读(217) 评论(0) 推荐(0) 编辑

摘要: 1 public class OracleJdbcTest{ 2 String driverClass = ”oracle.jdbc.driver.OracleDriver”; 3 Connection con; 4 public void init(FileInputStream fs) throws ClassNotFoundException, SQLExc... 阅读全文

posted @ 2017-07-02 16:11 天一涯 阅读(180) 评论(0) 推荐(0) 编辑

摘要: 1 BufferedWriter out = null; 2 try { 3 out = new BufferedWriter(new FileWriter(”filename”, true)); 4 out.write(”aString”); 5 } catch (IOException e) { 6 // error processing code 7 } fi... 阅读全文

posted @ 2017-07-02 15:48 天一涯 阅读(380) 评论(0) 推荐(0) 编辑