随笔分类 -  javaIO

摘要:BufferedInputStream 类声明:public class BufferedInputStream extends FilterInputStream位于java.io包下官方对其说明: A BufferedInputStream adds functionality to anoth 阅读全文
posted @ 2016-11-14 20:15 火爆泡菜 阅读(5259) 评论(0) 推荐(0)
摘要:FilterInputStream、FilterOutputStream 过滤器字节输入流、输出流,这里用到了装饰器模式,它的主要用途在于给一个对象动态的添加功能。 当我们在创建FilterInputStream、FilterOutputStream这两个类的实例时需要传入一个InputStream 阅读全文
posted @ 2016-11-13 10:12 火爆泡菜 阅读(2825) 评论(0) 推荐(0)
摘要:FileInputStream 类声明:public class FileInputStream extends InputStream位于java.io包下官方对其说明: A FileInputStream obtains input bytes from a file in a file sys 阅读全文
posted @ 2016-11-13 10:12 火爆泡菜 阅读(4778) 评论(0) 推荐(0)
摘要:ByteArrayInputStream 类声明:public class ByteArrayInputStream extends InputStream位于java.io包下官方对其说明: A ByteArrayInputStream contains an internal buffer th 阅读全文
posted @ 2016-11-10 20:26 火爆泡菜 阅读(8634) 评论(2) 推荐(2)
摘要:字节输入流:InputStream 类声明: 位于java.io包下,是一个抽象类. 官方对其说明: This abstract class is the superclass of all classes representing an input stream of bytes. (简单翻译:抽 阅读全文
posted @ 2016-11-07 20:11 火爆泡菜 阅读(430) 评论(0) 推荐(0)