package com.atlassian.bitbucket.mesh.process.handler;

/**
 * Describes what action to take when binary data is detected.
 *
 * @see LineOutputAdapter
 */
public enum BinaryDisposition {

    /**
     * Binary output isn't useful, so cancel the process and don't stream any more output.
     */
    CANCEL,
    /**
     * Binary output isn't expected, so throw an exception.
     */
    ERROR,
    /**
     * Stream the binary data through the line pump like plain text.
     */
    STREAM
}
