Class CheckedInputStream
java.lang.Object
java.io.InputStream
cool.scx.io.io_stream.CheckedInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
DataReaderInputStream,NullCheckedInputStream
支持 检查是否关闭的 输入流
- Version:
- 0.0.1
- Author:
- scx567888
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Field Details
-
closed
protected volatile boolean closed
-
-
Constructor Details
-
CheckedInputStream
public CheckedInputStream()
-
-
Method Details
-
ensureOpen
- Throws:
IOException
-
isClosed
public boolean isClosed()
-