码迷,mamicode.com
首页 >  
搜索关键字:fileoutputstream    ( 1287个结果
2016-9-61、 批量给文件名的前面加上“igeek_高薪就业” 2、 利用FileInputStream和FileOutputStream复制文件
1、批量给文件名的前面加上“igeek_高薪就业” 写下来竟然也花了半个小时的时间,出乎意料,主要开始想的太多了,本想分成文件和文件夹2中形式,再将文件名拆分成前缀和后缀,忘记有renameTo这个方法了,不过也好这样对文件目录的操作又熟悉了,下次2分钟搞定, 果然还是要先有思路,自己能想到有可能的 ...
分类:其他好文   时间:2016-09-07 10:54:40    阅读次数:186
简单排序(java)
package test; import java.io.BufferedReader; import java.io.File; import java.io.FileOutputStream; import java.io.FileReader; import java.io.IOExcepti ...
分类:编程语言   时间:2016-09-05 23:33:35    阅读次数:289
java实现ftp上传下载
package ExcelWITxt; import java.io.File;import java.io.FileInputStream;import java.io.FileOutputStream;import java.io.IOException;import java.util.Arr ...
分类:编程语言   时间:2016-09-05 16:51:29    阅读次数:143
IO流文件的读写操作
字符流有两个抽象类:Writer Reader。其对应子类FileWriter,FileReader可实现文件的读写操作 同样,字节流也有两个抽象类:InputStream OutputStream。其对应子类有FileInputStream,FileOutputStream可实现文件读写 IO流中 ...
分类:其他好文   时间:2016-09-04 22:08:30    阅读次数:148
16 IO操作文件读写
IO的分类 第一种分法: 1.输入流 2.输出流 第二种分法: 1.字节流 2.字符流 第三种分法: 1.节点流 2.处理流 I/O当中的核心类: InputStream < FileInputStream OutputStream < FileOutputStream 核心类的方法: InputS ...
分类:其他好文   时间:2016-09-04 19:05:39    阅读次数:191
网络爬虫爬取邮箱,并将其存入xml中作为数据库
package com.bjsxt.ly; import java.io.BufferedReader;import java.io.File;import java.io.FileNotFoundException;import java.io.FileOutputStream;import ja ...
分类:数据库   时间:2016-09-01 22:44:04    阅读次数:170
Java操作XML文件
package wzs; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import org.w3c.do ...
分类:编程语言   时间:2016-08-26 13:41:15    阅读次数:258
杰瑞教育13
Scanner in=new Scanner(System.in); String content=in.nextLine(); nextLine()方法允许输入一行内容并且有空格。 FileOutputStream,要想写入的内容不把原内容覆盖,则需要把原内容也读取出来,然后全都重新写入。 Inp ...
分类:其他好文   时间:2016-08-22 09:16:46    阅读次数:130
程序使用ObjectOutputStream(new FileOutputStream(fileName,true))向文件尾写入多个对象,多次运行,最后进行读取的时候抛出StreamCorruptedException
jdk1.8源码 public ObjectOutputStream(OutputStream out) throws IOException { verifySubclass(); bout = new BlockDataOutputStream(out); handles = new Handl ...
分类:其他好文   时间:2016-08-21 18:14:52    阅读次数:157
POI格式化Cell样式
通过一个实例演示怎样通过POI设置Excel单元格的边框、字体、颜色、大小、下划线、合并、对齐方式。 Excel文件如下: Java代码 package my.excel; import java.io.FileOutputStream; import org.apache.poi.ss.userm ...
分类:其他好文   时间:2016-08-17 10:29:26    阅读次数:127
1287条   上一页 1 ... 55 56 57 58 59 ... 129 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!