X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcom%2Fgooglecode%2Flanterna%2Finput%2FInputProvider.java;fp=src%2Fcom%2Fgooglecode%2Flanterna%2Finput%2FInputProvider.java;h=0000000000000000000000000000000000000000;hb=f06c81000632cfb5f525ca458f719338f55f9f66;hp=7b67e4e08606dddd70029256ef96587b26a48a6c;hpb=a73a906356c971b080c36368e71a15d87e8b8d31;p=jvcard.git diff --git a/src/com/googlecode/lanterna/input/InputProvider.java b/src/com/googlecode/lanterna/input/InputProvider.java deleted file mode 100644 index 7b67e4e..0000000 --- a/src/com/googlecode/lanterna/input/InputProvider.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * This file is part of lanterna (http://code.google.com/p/lanterna/). - * - * lanterna is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program. If not, see . - * - * Copyright (C) 2010-2015 Martin - */ -package com.googlecode.lanterna.input; - -import java.io.IOException; - -/** - * Objects implementing this interface can read character streams and transform them into {@code Key} objects which can - * be read in a FIFO manner. - * - * @author Martin - */ -public interface InputProvider { - /** - * Returns the next {@code Key} off the input queue or null if there is no more input events available. Note, this - * method call is not blocking, it returns null immediately if there is nothing on the input stream. - * @return Key object which represents a keystroke coming in through the input stream - * @throws java.io.IOException Propagated error if the underlying stream gave errors - */ - KeyStroke pollInput() throws IOException; - - /** - * Returns the next {@code Key} off the input queue or blocks until one is available. NOTE: In previous - * versions of Lanterna, this method was not blocking. From lanterna 3, it is blocking and you can call - * {@code pollInput()} for the non-blocking version. - * @return Key object which represents a keystroke coming in through the input stream - * @throws java.io.IOException Propagated error if the underlying stream gave errors - */ - KeyStroke readInput() throws IOException; -}