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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -