java - Implementing Custom BufferedReader Class -


i'm trying implement auto-completion logic in console application. auto completion logic triggers when specific characters encountered in input stream. logic i'm trying implement looks this:

i need able inspect stream of characters user types them determine if i've found

  • a command
  • a tab character
  • a '/' character
  • an enter character

currently, i'm thinking of implementing own bufferedstreamreader takes in reader , parses stream character character looking out these characters , reacting accordingly. however, i'm not sure if there easier way manage this.


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -