File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Java
»
Beginning Java
Author
StreamTokenizer
Hagaya Hatake
Greenhorn
Joined: Feb 01, 2006
Posts: 5
posted
Feb 03, 2006 04:58:00
0
Hi
I'm used to
StringTokenizer
but wanted to know how to use
StreamTokenizer
.
I know that I must start like this:
....... StreamTokenizer st = new StreamTokenizer( new StringReader("this is a test"));
but I don't know how to continue. I want space "s" and space to be delimiters but how do I do that??? Is it possible???
In
StringTokenizer
if I want to make "s" be a delimiter I will do this:
........ StreamTokenizer st = new StreamTokenizer(s,"s");
where the first s is the fileName.
wise owen
Ranch Hand
Joined: Feb 02, 2006
Posts: 2023
posted
Feb 03, 2006 16:31:00
0
this link
may help you.
wise
I agree. Here's the link:
http://aspose.com/file-tools
subject: StreamTokenizer
Similar Threads
Java search engine query
append a space if found dbl separator
StringTokenizer
finding token data type (StringTokenizer)
append a space if found dbl separator
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter