Package com.mysql.cj.protocol
Class FullReadInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
com.mysql.cj.protocol.FullReadInputStream
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class FullReadInputStream
extends java.io.FilterInputStream
InputStream wrapper that provides methods to aggregate reads of a given size. c.f. readFully(byte[],int,int).
-
Field Summary
-
Constructor Summary
Constructors Constructor Description FullReadInputStream(java.io.InputStream underlyingStream)
-
Method Summary
Modifier and Type Method Description java.io.InputStream
getUnderlyingStream()
int
readFully(byte[] b)
int
readFully(byte[] b, int off, int len)
long
skipFully(long len)
int
skipLengthEncodedInteger()
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, read, reset, skip
-
Constructor Details
-
FullReadInputStream
public FullReadInputStream(java.io.InputStream underlyingStream)
-
-
Method Details
-
getUnderlyingStream
public java.io.InputStream getUnderlyingStream() -
readFully
public int readFully(byte[] b) throws java.io.IOException- Throws:
java.io.IOException
-
readFully
public int readFully(byte[] b, int off, int len) throws java.io.IOException- Throws:
java.io.IOException
-
skipFully
public long skipFully(long len) throws java.io.IOException- Throws:
java.io.IOException
-
skipLengthEncodedInteger
public int skipLengthEncodedInteger() throws java.io.IOException- Throws:
java.io.IOException
-