摘要:
该类可以实现对同一个文件的读写操作,与其他IO流不同的是可以指定读写指针的脚标(seek),有跳过指定个数字节(skipBytes)操作。另外该类也可用于断点续传。简单示例如下:import java.io.FileNotFoundException;import java.io.IOException;import java.io.RandomAccessFile;public class RandomAccessFileDemo {/** * @param args * @throws IOException */public static void main(String[] args. 阅读全文
posted @ 2013-11-21 16:11
剑握在手
阅读(441)
评论(0)
推荐(0)
摘要:
import java.io.IOException;import java.io.PipedInputStream;import java.io.PipedOutputStream;public class PipedStream {/** * @param args * @throws IOException */public static void main(String[] args) throws IOException {PipedInputStream input = new PipedInputStream();PipedOutputStream output = new P. 阅读全文
posted @ 2013-11-21 14:33
剑握在手
阅读(250)
评论(0)
推荐(0)

浙公网安备 33010602011771号