// Path: src/main/java/com/dcp/sm/logic/factory/TypeFactory.java
// public enum LOG_LEVEL {
//     DEBUG(0, "DEBUG"),
//     INFO(1, "INFO"),
//     WARN(2, "WARNING"),
//     ERR(3, "ERROR");
//         
//     private int _level;
//     private String _tag;
//     private LOG_LEVEL(int level, String tag)
//     {
//         _level = level;
//         _tag = tag;
//     }
//     @Override
//     public String toString()
//     {
//         return this._tag;
//     }
//         
//     public int value()
//     {
//         return this._level;
//     }
// }


import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import com.dcp.sm.logic.factory.TypeFactory.LOG_LEVEL;
package com.dcp.sm.main.log;




public class StreamDisplay
{
    private static boolean noError = true;//If the error stream returned an error or not (true->not)
    private static int timeout = 1000;//Stream waiting timeout (1s)
    private static boolean wait = true;//Waits for a stream (or not)
    
    /**
     * Sets the display to wait or not for a stream result
     * Should be called before and after the function
     * to recover its state to the default one (true)
     */ 
    public static void setWait(boolean wait)
    {
        StreamDisplay.wait = wait;
    }
    
    /*
     * Sets the timeout waiting period
     * the WAIT function must be activated
     */
    public static void setTimeout(int TIMEOUT)
    {
        if (TIMEOUT<100) TIMEOUT=100;
        StreamDisplay.timeout = TIMEOUT;
    }
    
    //Display the generated output of a stream
    @SuppressWarnings({"unused", "static-access"})
// Path: src/main/java/com/dcp/sm/logic/factory/TypeFactory.java
// public enum LOG_LEVEL {
//     DEBUG(0, "DEBUG"),
//     INFO(1, "INFO"),
//     WARN(2, "WARNING"),
//     ERR(3, "ERROR");
//         
//     private int _level;
//     private String _tag;
//     private LOG_LEVEL(int level, String tag)
//     {
//         _level = level;
//         _tag = tag;
//     }
//     @Override
//     public String toString()
//     {
//         return this._tag;
//     }
//         
//     public int value()
//     {
//         return this._level;
//     }
// }


// Path: src/main/java/com/dcp/sm/main/log/StreamDisplay.java
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import com.dcp.sm.logic.factory.TypeFactory.LOG_LEVEL;

package com.dcp.sm.main.log;




public class StreamDisplay
{
    private static boolean noError = true;//If the error stream returned an error or not (true->not)
    private static int timeout = 1000;//Stream waiting timeout (1s)
    private static boolean wait = true;//Waits for a stream (or not)
    
    /**
     * Sets the display to wait or not for a stream result
     * Should be called before and after the function
     * to recover its state to the default one (true)
     */ 
    public static void setWait(boolean wait)
    {
        StreamDisplay.wait = wait;
    }
    
    /*
     * Sets the timeout waiting period
     * the WAIT function must be activated
     */
    public static void setTimeout(int TIMEOUT)
    {
        if (TIMEOUT<100) TIMEOUT=100;
        StreamDisplay.timeout = TIMEOUT;
    }
    
    //Display the generated output of a stream
    @SuppressWarnings({"unused", "static-access"})
    private static boolean mono_display (LOG_LEVEL level, InputStream STDOUT, InputStream STDERR) throws IOException, InterruptedException {