TelnetD at SF

net.wimpi.telnetd.io.toolkit
Interface InputFilter


public interface InputFilter

Interface that has to be implemented by any class * that should be registerable as input filter for * Editfield instances. * * @author Dieter Wimberger * @version 2.0 (13/03/2005)


Field Summary
static int INPUT_HANDLED
          Defines a special key denoting that the input has been * handled.
static int INPUT_INVALID
          Defines a special key denoting that the input * is invalid.
 
Method Summary
 int filterInput(int key)
          Method that is called by the Editfield this InputFilter instance * has been registered with on bytes read from the Stream
 

Field Detail

INPUT_HANDLED

public static final int INPUT_HANDLED
Defines a special key denoting that the input has been * handled.

See Also:
Constant Field Values

INPUT_INVALID

public static final int INPUT_INVALID
Defines a special key denoting that the input * is invalid.

See Also:
Constant Field Values
Method Detail

filterInput

public int filterInput(int key)
                throws java.io.IOException
Method that is called by the Editfield this InputFilter instance * has been registered with on bytes read from the Stream. * This will give the InputFilter the opportunity to * * @param key Integer representing a byte or a constant defining * a special key. * @return int Representing the byte to be used by the Editfield.

Throws:
java.io.IOException

TelnetD at SF

Copyright © 2000-2005 Dieter Wimberger.