Package org.bedework.calfacade.filter
Class SfpTokenizer
java.lang.Object
java.io.StreamTokenizer
org.bedework.calfacade.filter.SfpTokenizer
- All Implemented Interfaces:
org.bedework.util.logging.Logged
- Author:
- douglm
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidassertToken(int token) Asserts that the next token in the stream matches the specified token.voidassertToken(String token) Asserts that the next token in the stream matches the specified token.voidassertToken(String token, boolean ignoreCase) Asserts that the next token in the stream matches the specified token.voidbooleanatEof()static Stringorg.bedework.util.logging.BwLoggerintnext()voidAbsorbs extraneous newlines.booleanbooleantestToken(int token) Tests that the next token in the stream matches the specified token.booleanTests if the next token in the stream matches the specified token.booleanTests if the next token in the stream matches the specified token.Methods inherited from class java.io.StreamTokenizer
commentChar, eolIsSignificant, lineno, lowerCaseMode, nextToken, ordinaryChar, ordinaryChars, parseNumbers, pushBack, quoteChar, resetSyntax, slashSlashComments, slashStarComments, toString, whitespaceChars, wordCharsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.bedework.util.logging.Logged
audit, debug, debug, debug, enableAuditLogger, enableErrorLogger, enableMetricsLogger, error, error, error, getLogLevel, info, isAuditLoggerEnabled, isErrorLoggerEnabled, isMetricsDebugEnabled, isMetricsLoggerEnabled, metrics, setLoggerClass, setLoggerClass, trace, trace, trace, warn
-
Constructor Details
-
SfpTokenizer
- Parameters:
rdr-
-
-
Method Details
-
next
- Returns:
- int
- Throws:
CalFacadeException
-
assertToken
Asserts that the next token in the stream matches the specified token.- Parameters:
token- expected token- Throws:
CalFacadeException
-
assertWord
- Throws:
CalFacadeException
-
assertString
- Throws:
CalFacadeException
-
testString
- Returns:
- true if it's a quoted string
- Throws:
CalFacadeException
-
assertToken
Asserts that the next token in the stream matches the specified token. This method is case-sensitive.- Parameters:
token-- Throws:
CalFacadeException
-
assertToken
Asserts that the next token in the stream matches the specified token.- Parameters:
token- expected tokenignoreCase-- Throws:
CalFacadeException
-
atEof
public boolean atEof()- Returns:
- boolean true if eof flagged
-
testToken
Tests that the next token in the stream matches the specified token. This method is case-sensitive.- Parameters:
token-- Returns:
- boolean
- Throws:
CalFacadeException
-
testToken
Tests if the next token in the stream matches the specified token.- Parameters:
token- expected token- Returns:
- int
- Throws:
CalFacadeException
-
testToken
Tests if the next token in the stream matches the specified token.- Parameters:
token- expected tokenignoreCase-- Returns:
- boolean
- Throws:
CalFacadeException
-
skipWhitespace
Absorbs extraneous newlines.- Throws:
CalFacadeException
-
escapeQuotes
-
getLogger
public org.bedework.util.logging.BwLogger getLogger()- Specified by:
getLoggerin interfaceorg.bedework.util.logging.Logged
-