public class AutoCloseInputStream extends InputStream
| 构造器和说明 |
|---|
AutoCloseInputStream(InputStream in)
创建自动关闭的输入流
|
public AutoCloseInputStream(InputStream in)
in - 读取的目标流public int read()
throws IOException
read 在类中 InputStreamIOExceptionpublic int available()
throws IOException
available 在类中 InputStreamIOExceptionpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 InputStreamIOExceptionpublic void mark(int readlimit)
mark 在类中 InputStreampublic boolean markSupported()
markSupported 在类中 InputStreampublic int read(byte[] b,
int off,
int len)
throws IOException
read 在类中 InputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read 在类中 InputStreamIOExceptionpublic void reset()
throws IOException
reset 在类中 InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip 在类中 InputStreamIOExceptionCopyright © 2021–2022. All rights reserved.