- 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 
- 
方法概要
修饰符和类型 方法 说明 intavailable()voidclose()voidmark(int readlimit)booleanmarkSupported()intread()intread(@org.jetbrains.annotations.NotNull byte[] b)intread(@org.jetbrains.annotations.NotNull byte[] b, int off, int len)booleanreadBoolean()bytereadByte()charreadChar()doublereadDouble()floatreadFloat()voidreadFully(@org.jetbrains.annotations.NotNull byte[] b)voidreadFully(@org.jetbrains.annotations.NotNull byte[] b, int off, int len)intreadInt()StringreadLine()longreadLong()shortreadShort()intreadUnsignedByte()intreadUnsignedShort()@NotNull StringreadUTF()voidreset()intskipBytes(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
 
 - 
 
 -