- java.lang.Object
-
- java.io.InputStream
-
- java.io.FileInputStream
-
- cn.mcres.karlatemp.mxlib.util.WrappedFileInputStream
-
- 所有已实现的接口:
Closeable
,AutoCloseable
public class WrappedFileInputStream extends FileInputStream
-
-
构造器概要
构造器 构造器 说明 WrappedFileInputStream(@NotNull InputStream input)
-
方法概要
修饰符和类型 方法 说明 int
available()
void
close()
void
mark(int readlimit)
boolean
markSupported()
int
read()
int
read(@org.jetbrains.annotations.NotNull byte[] b)
int
read(@org.jetbrains.annotations.NotNull byte[] b, int off, int len)
byte[]
readAllBytes()
int
readNBytes(byte[] b, int off, int len)
byte[]
readNBytes(int len)
void
reset()
long
skip(long n)
void
skipNBytes(long n)
long
transferTo(OutputStream out)
-
从类继承的方法 java.io.FileInputStream
getChannel, getFD
-
从类继承的方法 java.io.InputStream
nullInputStream
-
-
-
-
构造器详细资料
-
WrappedFileInputStream
public WrappedFileInputStream(@NotNull @NotNull InputStream input)
-
-
方法详细资料
-
readAllBytes
public byte[] readAllBytes() throws IOException
- 覆盖:
readAllBytes
在类中InputStream
- 抛出:
IOException
-
readNBytes
public byte[] readNBytes(int len) throws IOException
- 覆盖:
readNBytes
在类中InputStream
- 抛出:
IOException
-
read
public int read() throws IOException
- 覆盖:
read
在类中FileInputStream
- 抛出:
IOException
-
read
public int read(@NotNull @org.jetbrains.annotations.NotNull byte[] b) throws IOException
- 覆盖:
read
在类中FileInputStream
- 抛出:
IOException
-
read
public int read(@NotNull @org.jetbrains.annotations.NotNull byte[] b, int off, int len) throws IOException
- 覆盖:
read
在类中FileInputStream
- 抛出:
IOException
-
readNBytes
public int readNBytes(byte[] b, int off, int len) throws IOException
- 覆盖:
readNBytes
在类中InputStream
- 抛出:
IOException
-
reset
public void reset() throws IOException
- 覆盖:
reset
在类中InputStream
- 抛出:
IOException
-
markSupported
public boolean markSupported()
- 覆盖:
markSupported
在类中InputStream
-
mark
public void mark(int readlimit)
- 覆盖:
mark
在类中InputStream
-
close
public void close() throws IOException
- 指定者:
close
在接口中AutoCloseable
- 指定者:
close
在接口中Closeable
- 覆盖:
close
在类中FileInputStream
- 抛出:
IOException
-
skip
public long skip(long n) throws IOException
- 覆盖:
skip
在类中FileInputStream
- 抛出:
IOException
-
skipNBytes
public void skipNBytes(long n) throws IOException
- 覆盖:
skipNBytes
在类中InputStream
- 抛出:
IOException
-
available
public int available() throws IOException
- 覆盖:
available
在类中FileInputStream
- 抛出:
IOException
-
transferTo
public long transferTo(OutputStream out) throws IOException
- 覆盖:
transferTo
在类中InputStream
- 抛出:
IOException
-
-