Code example for InputStream

Methods: read

0
        this.echoEnabled = enabled;
        Log.debug("Echo enabled: ", enabled);
    } 
 
    public int readCharacter(final InputStream in) throws IOException {
        return in.read();
    } 
 
    public int readVirtualKey(final InputStream in) throws IOException {
        return readCharacter(in);
    } 
 
    public InputStream getDefaultBindings() {
        return TerminalSupport.class.getResourceAsStream(DEFAULT_KEYBINDINGS_PROPERTIES);
    } 
 
    // 
    // RestoreHook 
    // 
 
    protected class RestoreHook