Code example for IOException

0
 
        Log.debug("Config: ", config);
 
        // sanity check 
        if (config.length() == 0) {
            throw new IOException(MessageFormat.format("Unrecognized stty code: {0}", config));
        } 
    } 
 
    public String getConfig() {
        return config;
    } 
 
    public void restore() throws IOException, InterruptedException { 
        set("sane"); 
    } 
 
    public String get(final String args) throws IOException, InterruptedException {
        return stty(args);
    }