Java Stream Tokenizer - What is meant by Stream Tokenizer?

What is meant by Stream Tokenizer?

- The StreamTokenizer class takes an input stream and parses it into "tokens", allowing the tokens to be read one at a time.

- The parsing process is controlled by a table and a number of flags that can be set to various states.

- The stream tokenizer can recognize identifiers, numbers, quoted strings, and various comment styles.

Declaration of SteamTokenizer:
public class StreamTokenizer
   extends Object

- It tokenizes the stream into distinct word and allows to read one by one.
What is meant by getCodeBase and getDocumentBase method?
Java getCodeBase & getDocumentBase - The getCodebase() method is also commonly used to establish a path to other files or folders that are in the same location as the class being run...
30 Core Java Interview Questions and Answers for Freshers
Core java interview questions and answers for freshers - What are the basic features of java?, How java becomes object oriented?, How java becomes robust?, How a Java program compiles?
40 Core Java Interview Questions and Answers for Experienced
Core Java Interview Q & A for experienced - Why we prefer event-delegation model over earlier event-inheritance model?, How is Java source code files named?, What are the advantages of Java layout managers?
Post your comment