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.

Version:
2.0 (16/07/2006)
Author:
Dieter Wimberger

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

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

See Also:
Constant Field Values

INPUT_INVALID

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

See Also:
Constant Field Values
Method Detail

filterInput

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

Parameters:
key - Integer representing a byte or a constant defining a special key.
Returns:
int Representing the byte to be used by the Editfield.
Throws:
java.io.IOException


Copyright © 2010. All Rights Reserved.