com.github.shyiko.mysql.binlog
Class BinaryLogFileReader
java.lang.Object
com.github.shyiko.mysql.binlog.BinaryLogFileReader
- All Implemented Interfaces:
- Closeable
public class BinaryLogFileReader
- extends Object
- implements Closeable
MySQL binary log file reader.
- Author:
- Stanley Shyiko
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAGIC_HEADER
public static final byte[] MAGIC_HEADER
BinaryLogFileReader
public BinaryLogFileReader(File file)
throws IOException
- Throws:
IOException
BinaryLogFileReader
public BinaryLogFileReader(File file,
EventDeserializer eventDeserializer)
throws IOException
- Throws:
IOException
BinaryLogFileReader
public BinaryLogFileReader(InputStream inputStream)
throws IOException
- Throws:
IOException
BinaryLogFileReader
public BinaryLogFileReader(InputStream inputStream,
EventDeserializer eventDeserializer)
throws IOException
- Throws:
IOException
readEvent
public Event readEvent()
throws IOException
- Returns:
- deserialized event or null in case of end-of-stream
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Throws:
IOException
Copyright © 2016. All Rights Reserved.