类 LimitInputStream
- java.lang.Object
-
- java.io.InputStream
-
- cn.mcres.gyhhy.MXLib.io.LimitInputStream
-
- 所有已实现的接口:
Closeable
,AutoCloseable
public class LimitInputStream extends InputStream
- 作者:
- Karlatemp
-
-
构造器概要
构造器 构造器 说明 LimitInputStream(long limit, InputStream io)
LimitInputStream(long limit, InputStream io, boolean close)
-
方法概要
-
从类继承的方法 java.io.InputStream
mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
-
-
-
构造器详细资料
-
LimitInputStream
public LimitInputStream(long limit, InputStream io)
-
LimitInputStream
public LimitInputStream(long limit, InputStream io, boolean close)
-
-
方法详细资料
-
hasNext
public boolean hasNext()
-
getLimit
public long getLimit()
-
read
public int read() throws IOException
- 指定者:
read
在类中InputStream
- 抛出:
IOException
-
read
public int read(byte[] b) throws IOException
- 覆盖:
read
在类中InputStream
- 抛出:
IOException
-
read
public int read(byte[] b, int offset, int leng) throws IOException
- 覆盖:
read
在类中InputStream
- 抛出:
IOException
-
available
public int available() throws IOException
- 覆盖:
available
在类中InputStream
- 抛出:
IOException
-
close
public void close() throws IOException
- 指定者:
close
在接口中AutoCloseable
- 指定者:
close
在接口中Closeable
- 覆盖:
close
在类中InputStream
- 抛出:
IOException
-
-