Class CompressedInputStream
java.lang.Object
java.io.InputStream
com.mysql.jdbc.CompressedInputStream
- All Implemented Interfaces:
Closeable, AutoCloseable
Used to de-compress packets from the MySQL server when protocol-level compression is turned on.
-
Constructor Summary
ConstructorsConstructorDescriptionCompressedInputStream(Connection conn, InputStream streamFromServer) Creates a new CompressedInputStream that reads the given stream from the server. -
Method Summary
Methods inherited from class InputStream
mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skipNBytes, transferTo
-
Constructor Details
-
CompressedInputStream
Creates a new CompressedInputStream that reads the given stream from the server.- Parameters:
conn-streamFromServer-
-
-
Method Details
-
available
- Overrides:
availablein classInputStream- Throws:
IOException- See Also:
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException- See Also:
-
read
- Specified by:
readin classInputStream- Throws:
IOException- See Also:
-
read
- Overrides:
readin classInputStream- Throws:
IOException- See Also:
-
read
- Overrides:
readin classInputStream- Throws:
IOException- See Also:
-
skip
- Overrides:
skipin classInputStream- Throws:
IOException- See Also:
-