Re: [Htmlparser-developer] can someone elaborate on these states?...
Brought to you by:
derrickoswald
|
From: Somik R. <so...@ya...> - 2003-02-06 19:35:02
|
> public class StringParser {
> private final static int
> BEFORE_PARSE_BEGINS_STATE=0;
This is the state in which the stringparser begins its
life.
> private final static int PARSE_HAS_BEGUN_STATE=1;
When the first valid character has been encountered,
the machine enters this state.
> private final static int PARSE_COMPLETED_STATE=2;
When an invalid character has been encountered (which
cannot be a part of the stringnode), the machine
enters a parse-completed state and returns.
> private final static int PARSE_IGNORE_STATE=3;
When quotes are encountered, the machine ignores
characters which would normally throw it to
PARSE_COMPLETED_STATE.
Regards,
Somik
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
|