类 ReadAheadInputStream
- java.lang.Object
-
- java.io.InputStream
-
- com.mysql.cj.protocol.ReadAheadInputStream
-
- 所有已实现的接口:
Closeable,AutoCloseable
public class ReadAheadInputStream extends InputStream
A non-blocking buffered input stream. Reads more if it can, won't block to fill the buffer, only blocks to satisfy a request of read(byte[])
-
-
字段概要
字段 修饰符和类型 字段 说明 protected intcurrentPositionprotected booleandoDebugprotected intendOfCurrentDataprotected Loglog
-
构造器概要
构造器 构造器 说明 ReadAheadInputStream(InputStream toBuffer, boolean debug, Log logTo)ReadAheadInputStream(InputStream toBuffer, int bufferSize, boolean debug, Log logTo)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 intavailable()voidclose()booleanmarkSupported()intread()intread(byte[] b, int off, int len)longskip(long n)-
从类继承的方法 java.io.InputStream
mark, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, transferTo
-
-
-
-
字段详细资料
-
endOfCurrentData
protected int endOfCurrentData
-
currentPosition
protected int currentPosition
-
doDebug
protected boolean doDebug
-
log
protected Log log
-
-
构造器详细资料
-
ReadAheadInputStream
public ReadAheadInputStream(InputStream toBuffer, boolean debug, Log logTo)
-
ReadAheadInputStream
public ReadAheadInputStream(InputStream toBuffer, int bufferSize, boolean debug, Log logTo)
-
-
方法详细资料
-
read
public int read(byte[] b, int off, int len) throws IOException- 覆盖:
read在类中InputStream- 抛出:
IOException
-
read
public int read() 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
-
markSupported
public boolean markSupported()
- 覆盖:
markSupported在类中InputStream
-
skip
public long skip(long n) throws IOException- 覆盖:
skip在类中InputStream- 抛出:
IOException
-
-