package com.animerom.filemanager.commands.shell;

import java.text.ParseException;

/**
 * An interface for communicate shell results in a sync way.
 */
public interface SyncResultProgramListener {
    /**
     * Method that parse the result of a shell program invocation.
     *
     * @param in The standard input buffer
     * @param err The standard error buffer
     * @throws ParseException If the output is not well-formed
     */
    void parse(String in, String err) throws ParseException;
}
