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
Post a Comment