.equals("Hello World"));
st.nextToken();
assertTrue("Wrong Token type8: " + st.ttype, st.ttype == -1);
final PipedInputStream pin = new PipedInputStream();
PipedOutputStream pout = new PipedOutputStream(pin);
pout.write("hello\n\r\r".getBytes());
StreamTokenizer s = new StreamTokenizer(pin);
s.eolIsSignificant(true);
assertTrue("Wrong token 1,1",
s.nextToken() == StreamTokenizer.TT_WORD
&& s.sval.equals("hello"));
assertTrue("Wrong token 1,2", s.nextToken() == '\n');
assertTrue("Wrong token 1,3", s.nextToken() == '\n');
assertTrue("Wrong token 1,4", s.nextToken() == '\n');
pout.close();
assertTrue("Wrong token 1,5",
s.nextToken() == StreamTokenizer.TT_EOF);
StreamTokenizer tokenizer = new StreamTokenizer(
new Support_StringReader("\n \r\n#"));
tokenizer.ordinaryChar('\n'); // make \n ordinary