- java.lang.Object
-
- java.io.InputStream
-
- cn.mcres.karlatemp.mxlib.util.RAFInputStream
-
- 所有已实现的接口:
Closeable
,DataInput
,AutoCloseable
public class RAFInputStream extends InputStream implements DataInput
A input stream with RandomAccessFile- 从以下版本开始:
- 2.12
-
-
构造器概要
构造器 构造器 说明 RAFInputStream(RandomAccessFile raf)
RAFInputStream(RandomAccessFile raf, boolean allowClose)
The constructor of RAFInputStream
-
方法概要
修饰符和类型 方法 说明 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)
boolean
readBoolean()
byte
readByte()
char
readChar()
double
readDouble()
float
readFloat()
void
readFully(@org.jetbrains.annotations.NotNull byte[] b)
void
readFully(@org.jetbrains.annotations.NotNull byte[] b, int off, int len)
int
readInt()
String
readLine()
long
readLong()
short
readShort()
int
readUnsignedByte()
int
readUnsignedShort()
@NotNull String
readUTF()
void
reset()
int
skipBytes(int n)
-
从类继承的方法 java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skip, skipNBytes, transferTo
-
-
-
-
构造器详细资料
-
RAFInputStream
public RAFInputStream(RandomAccessFile raf) throws IOException
- 抛出:
IOException
-
RAFInputStream
public RAFInputStream(RandomAccessFile raf, boolean allowClose) throws IOException
The constructor of RAFInputStream- 参数:
raf
- The RAF usingallowClose
- Need close RAF inclose()
- 抛出:
IOException
- Error inRandomAccessFile.getFilePointer()
-
-
方法详细资料
-
readFully
public void readFully(@NotNull @org.jetbrains.annotations.NotNull byte[] b) throws IOException
- 指定者:
readFully
在接口中DataInput
- 抛出:
IOException
-
readFully
public void readFully(@NotNull @org.jetbrains.annotations.NotNull byte[] b, int off, int len) throws IOException
- 指定者:
readFully
在接口中DataInput
- 抛出:
IOException
-
skipBytes
public int skipBytes(int n) throws IOException
- 指定者:
skipBytes
在接口中DataInput
- 抛出:
IOException
-
readBoolean
public boolean readBoolean() throws IOException
- 指定者:
readBoolean
在接口中DataInput
- 抛出:
IOException
-
readByte
public byte readByte() throws IOException
- 指定者:
readByte
在接口中DataInput
- 抛出:
IOException
-
readUnsignedByte
public int readUnsignedByte() throws IOException
- 指定者:
readUnsignedByte
在接口中DataInput
- 抛出:
IOException
-
readShort
public short readShort() throws IOException
- 指定者:
readShort
在接口中DataInput
- 抛出:
IOException
-
readUnsignedShort
public int readUnsignedShort() throws IOException
- 指定者:
readUnsignedShort
在接口中DataInput
- 抛出:
IOException
-
readChar
public char readChar() throws IOException
- 指定者:
readChar
在接口中DataInput
- 抛出:
IOException
-
readInt
public int readInt() throws IOException
- 指定者:
readInt
在接口中DataInput
- 抛出:
IOException
-
readLong
public long readLong() throws IOException
- 指定者:
readLong
在接口中DataInput
- 抛出:
IOException
-
readFloat
public float readFloat() throws IOException
- 指定者:
readFloat
在接口中DataInput
- 抛出:
IOException
-
readDouble
public double readDouble() throws IOException
- 指定者:
readDouble
在接口中DataInput
- 抛出:
IOException
-
readLine
public String readLine() throws IOException
- 指定者:
readLine
在接口中DataInput
- 抛出:
IOException
-
readUTF
@NotNull public @NotNull String readUTF() throws IOException
- 指定者:
readUTF
在接口中DataInput
- 抛出:
IOException
-
read
public int read() throws IOException
- 指定者:
read
在类中InputStream
- 抛出:
IOException
-
read
public int read(@NotNull @org.jetbrains.annotations.NotNull byte[] b) throws IOException
- 覆盖:
read
在类中InputStream
- 抛出:
IOException
-
read
public int read(@NotNull @org.jetbrains.annotations.NotNull byte[] b, int off, int len) throws IOException
- 覆盖:
read
在类中InputStream
- 抛出:
IOException
-
markSupported
public boolean markSupported()
- 覆盖:
markSupported
在类中InputStream
-
reset
public void reset() throws IOException
- 覆盖:
reset
在类中InputStream
- 抛出:
IOException
-
mark
public void mark(int readlimit)
- 覆盖:
mark
在类中InputStream
-
close
public void close() throws IOException
- 指定者:
close
在接口中AutoCloseable
- 指定者:
close
在接口中Closeable
- 覆盖:
close
在类中InputStream
- 抛出:
IOException
-
available
public int available() throws IOException
- 覆盖:
available
在类中InputStream
- 抛出:
IOException
-
-