com.exasol.projectkeeper.stream.StreamConsumer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of project-keeper-core Show documentation
Show all versions of project-keeper-core Show documentation
Project keeper is a tool that verifies and fixes project setups.
package com.exasol.projectkeeper.stream;
import java.io.IOException;
/**
* Callback interface used by {@link AsyncStreamReader}.
*/
public interface StreamConsumer {
/**
* Called when a new line was read from the input stream.
*
* @param line the read line
*/
void accept(String line);
/**
* Called when reading the input stream finished.
*/
void readFinished();
/**
* Called when reading the input stream failed.
*
* @param ioException the exception.
*/
void readFailed(IOException ioException);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy