Class CheckedInputStream

java.lang.Object
java.io.InputStream
cool.scx.io.io_stream.CheckedInputStream
All Implemented Interfaces:
Closeable, AutoCloseable
Direct Known Subclasses:
DataReaderInputStream, NullCheckedInputStream

public abstract class CheckedInputStream extends InputStream
支持 检查是否关闭的 输入流
Version:
0.0.1
Author:
scx567888
  • Field Details

    • closed

      protected volatile boolean closed
  • Constructor Details

    • CheckedInputStream

      public CheckedInputStream()
  • Method Details

    • ensureOpen

      protected void ensureOpen() throws IOException
      Throws:
      IOException
    • isClosed

      public boolean isClosed()