All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.itsallcode.io.Capturable Maven / Gradle / Ivy

package org.itsallcode.io;

/**
 * Interface for classes that can capture output.
 */
public interface Capturable
{
    /**
     * Activate capturing
     */
    void capture();

    /**
     * Activate muted capturing, i.e. don't forward output to the underlying
     * output stream. This can be useful to speedup tests.
     */
    void captureMuted();

    /**
     * Get the data that was captured.
     *
     * @return captured data.
     */
    String getCapturedData();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy