|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.io.InputStream
|
+--org.shlublu.javax.awt.TextComponentInputStream
Creation : 1 sept 2001 InputStream which read from standard awt TextComponent. Revision 2001/12/28 : added history recall by typing 'arrows' Revision 2002/01/02 : slight amelioration on history recall
InputStream| Constructor Summary | |
TextComponentInputStream(java.awt.TextComponent componentGiven)
Constructor |
|
TextComponentInputStream(java.awt.TextComponent componentGiven,
int iHLen)
Constructor. |
|
| Method Summary | |
int |
available()
number of available characters, according to the java.io.InputStream specification |
void |
close()
Close the stream, so it can't be used anymore. |
void |
keyPressed(java.awt.event.KeyEvent e)
Browse the history |
void |
keyReleased(java.awt.event.KeyEvent e)
do nothing, just implement the interface |
void |
keyTyped(java.awt.event.KeyEvent e)
Process key events. |
void |
mark(int readlimit)
unused |
boolean |
markSupported()
always return false. |
int |
read()
read a char, according to the java.io.InputStream specifications |
int |
read(byte[] aby)
read a in a byte array, according to the java.io.InputStream specification |
int |
read(byte[] aby,
int iStart,
int iLen)
read a in a byte array, according to the java.io.InputStream specification |
void |
reset()
always throws an IOException. |
long |
skip(long lSkip)
skip the given number of available characters, according to the java.io.InputStream specification |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TextComponentInputStream(java.awt.TextComponent componentGiven)
TextComponent - The component to read from
public TextComponentInputStream(java.awt.TextComponent componentGiven,
int iHLen)
TextComponent - The component to read fromint - History size| Method Detail |
public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException - as java.lang.InputStream define
public int read(byte[] aby)
throws java.io.IOException
read in class java.io.InputStreambyte - [] the array to read injava.io.IOException - as java.lang.InputStream defineNullPointerException - if the given array is null
public int read(byte[] aby,
int iStart,
int iLen)
throws java.io.IOException
read in class java.io.InputStreambyte - [] the array to read inint - iStart the index to begin atint - iLen the length to readjava.io.IOException - as java.lang.InputStream defineNullPointerException - if the given array is nulljava.lang.IndexOutOfBoundsException - if the indexes or length are wrong
public int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOException - as java.lang.InputStream definepublic void mark(int readlimit)
mark in class java.io.InputStreamInputStream.mark(int)public boolean markSupported()
markSupported in class java.io.InputStreamInputStream.markSupported()
public void reset()
throws java.io.IOException
reset in class java.io.InputStreamInputStream.reset()
public long skip(long lSkip)
throws java.io.IOException
skip in class java.io.InputStreamlong - the number of characters to skipjava.io.IOException - as java.lang.InputStream define
public void close()
throws java.io.IOException
close in class java.io.InputStreamjava.io.IOException - as java.lang.InputStream definepublic void keyTyped(java.awt.event.KeyEvent e)
keyTyped in interface java.awt.event.KeyListenerTextComponentInputStream#flushInpublic void keyPressed(java.awt.event.KeyEvent e)
keyPressed in interface java.awt.event.KeyListenerpublic void keyReleased(java.awt.event.KeyEvent e)
keyReleased in interface java.awt.event.KeyListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||