Closeable、Readable、Flushable和Appendable
来源:互联网 发布:石家庄 软件开发培训 编辑:程序博客网 时间:2024/06/08 18:15
Closeable:
package java.io;import java.io.IOException;public interface Closeable { /** * Closes this stream and releases any system resources associated * with it. If the stream is already closed then invoking this * method has no effect. */ public void close() throws IOException;}
Readable:
package java.lang;import java.io.IOException;public interface Readable { /** * Attempts to read characters into the specified character buffer. * The buffer is used as a repository of characters as-is: the only * changes made are the results of a put operation. No flipping or * rewinding of the buffer is performed. */ public int read(java.nio.CharBuffer cb) throws IOException;}Flushable:
package java.io;import java.io.IOException;public interface Flushable { /** * Flushes this stream by writing any buffered output to the underlying stream. */ void flush() throws IOException;}
Appendable:
package java.lang;import java.io.IOException;public interface Appendable { /** * Appends the specified character sequence to this Appendable. * @return A reference to this Appendable */ Appendable append(CharSequence csq) throws IOException; /** * Appends a subsequence of the specified character sequence to this Appendable. * @return A reference to this Appendable */ Appendable append(CharSequence csq, int start, int end) throws IOException; /** * Appends the specified character to this Appendable. * @return A reference to this Appendable */ Appendable append(char c) throws IOException;}
0 0
- Closeable、Readable、Flushable和Appendable
- The Closeable, Flushable, Readable, and Appendable interfaces
- AutoCloseable,Closeable和Flushable
- AutoCloseable, Closeable和Flushable接口
- JDK 1.7 java.io 源码学习之Closeable、Flushable、Appendable接口
- io中的AutoCloseable,Closeable和Flushable接口
- 探究java IO之AutoCloseable,Closeable和Flushable接口
- 探究java IO之AutoCloseable,Closeable和Flushable接口
- 探究java IO之AutoCloseable,Closeable和Flushable接口
- java IO之AutoCloseable,Closeable和Flushable接口
- Closeable
- Closeable
- AutoCloseable和Closeable的关系
- Closeable和java7自动资源释放特性
- java IO相关API探索之Closeable和InputStream接口
- 接口 Closeable
- 接口 Closeable
- java.lang.Appendable接口
- Python读书笔记-第五章
- 图像直方图均衡化
- MySQL索引原理及慢查询优化
- 国内Android镜像站点
- Axure RP Pro v7.0中文汉化版的方法
- Closeable、Readable、Flushable和Appendable
- 软件架构模式基本概念及三者区别
- iOS 100个iOS开发/设计面试题汇总(第一篇)
- Foundation框架(14)——NSDate的使用(创建和格式化)
- IA32 gnu assembly 32 bit instruction pretend to be 64 bit instruction
- RAC的GES/GCS原理
- C++中的【菱形虚继承】深入剖析
- 互联网某前技术总监分享
- 怎样查看rpm安装包的安装路径