Class BufferedSocketInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- com.github.shyiko.mysql.binlog.io.BufferedSocketInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class BufferedSocketInputStream extends FilterInputStream
Copied from https://github.com/osheroff/mysql-binlog-connector-java project to fix https://github.com/ververica/flink-cdc-connectors/issues/460.Line 50 and Line 70 ~ 72: Returns -1 means reach the end of InputStream. We should remove this class after we bumped a higher mysql-binlog-connector-java version where the https://github.com/osheroff/mysql-binlog-connector-java/issues/66 has been fixed.
-
-
Field Summary
-
Fields inherited from class java.io.FilterInputStream
in
-
-
Constructor Summary
Constructors Constructor Description BufferedSocketInputStream(InputStream in)BufferedSocketInputStream(InputStream in, int bufferSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()intread()intread(byte[] b, int off, int len)-
Methods inherited from class java.io.FilterInputStream
close, mark, markSupported, read, reset, skip
-
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Constructor Detail
-
BufferedSocketInputStream
public BufferedSocketInputStream(InputStream in)
-
BufferedSocketInputStream
public BufferedSocketInputStream(InputStream in, int bufferSize)
-
-
Method Detail
-
available
public int available() throws IOException- Overrides:
availablein classFilterInputStream- Throws:
IOException
-
read
public int read() throws IOException- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException- Overrides:
readin classFilterInputStream- Throws:
IOException
-
-