File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes State Machine Design Pattern Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "State Machine Design Pattern" Watch "State Machine Design Pattern" New topic
Author

State Machine Design Pattern

Pho Tek
Ranch Hand

Joined: Nov 05, 2000
Posts: 761

I need a state machine to track the character tokens that I read in. Basically I have an XML stream that's going to be written to a Writer object. I am writing a FilterWriter that will look for the XML prolog string:
< ?xml version='1.0'?>
and filter that out.
Do you have any pointers to sample code for a state machine in Java or maybe a design pattern for it? Thanks all.
Pho
(edited by Cindy to add space in XML tag so that it will display)
[This message has been edited by Cindy Glass (edited April 23, 2001).]


Regards,

Pho
 
jQuery in Action, 2nd edition
 
subject: State Machine Design Pattern
 
Similar Threads
Architecture for mutiple GUI versions
JAVA is DEAD!!!
what design Pattern to use for this problem
urgent ! swing design pattern
State pattern