类 ContinuousInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- com.mysql.cj.protocol.x.ContinuousInputStream
-
- 所有已实现的接口:
Closeable,AutoCloseable
public class ContinuousInputStream extends FilterInputStream
AnInputStreamwrapper that reads from a queue of underlyingInputStreams, giving the impression that all data is coming from a single, continuous, source.
-
-
字段概要
-
从类继承的字段 java.io.FilterInputStream
in
-
-
构造器概要
构造器 限定符 构造器 说明 protectedContinuousInputStream(InputStream in)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected booleanaddInputStream(InputStream newIn)Adds anotherInputStreamto theInputStreams queue.intavailable()Returns the number of bytes available in the active underlyingInputStream.voidclose()Closes this stream and all underlyingInputStreams.intread()Reads one byte from the underlyingInputStream.intread(byte[] b)Forwards the read toread(byte[], int, int).intread(byte[] b, int off, int len)Reads bytes from the underlyingInputStream.-
从类继承的方法 java.io.FilterInputStream
mark, markSupported, reset, skip
-
从类继承的方法 java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
构造器详细资料
-
ContinuousInputStream
protected ContinuousInputStream(InputStream in)
-
-
方法详细资料
-
available
public int available() throws IOExceptionReturns the number of bytes available in the active underlyingInputStream.- 覆盖:
available在类中FilterInputStream- 返回:
- the number of bytes available.
- 抛出:
IOException- 另请参阅:
FilterInputStream.available()
-
close
public void close() throws IOExceptionCloses this stream and all underlyingInputStreams.- 指定者:
close在接口中AutoCloseable- 指定者:
close在接口中Closeable- 覆盖:
close在类中FilterInputStream- 抛出:
IOException- 另请参阅:
FilterInputStream.close()
-
read
public int read() throws IOExceptionReads one byte from the underlyingInputStream. When EOF is reached, then reads from the nextInputStreamin the queue.- 覆盖:
read在类中FilterInputStream- 抛出:
IOException- 另请参阅:
FilterInputStream.read()
-
read
public int read(byte[] b) throws IOExceptionForwards the read toread(byte[], int, int).- 覆盖:
read在类中FilterInputStream- 抛出:
IOException- 另请参阅:
FilterInputStream.read(byte[])
-
read
public int read(byte[] b, int off, int len) throws IOExceptionReads bytes from the underlyingInputStream. When EOF is reached, then reads from the nextInputStreamin the queue.- 覆盖:
read在类中FilterInputStream- 抛出:
IOException- 另请参阅:
FilterInputStream.read(byte[], int, int)
-
addInputStream
protected boolean addInputStream(InputStream newIn)
Adds anotherInputStreamto theInputStreams queue.- 参数:
newIn- theInputStreamto add.- 返回:
trueif the element was added to theInputStreams queue.
-
-