Class SfpTokenizer

java.lang.Object
java.io.StreamTokenizer
org.bedework.calfacade.filter.SfpTokenizer
All Implemented Interfaces:
org.bedework.util.logging.Logged

public class SfpTokenizer extends StreamTokenizer implements org.bedework.util.logging.Logged
Author:
douglm
  • Constructor Details

    • SfpTokenizer

      public SfpTokenizer(Reader rdr)
      Parameters:
      rdr -
  • Method Details

    • next

      public int next() throws CalFacadeException
      Returns:
      int
      Throws:
      CalFacadeException
    • assertToken

      public void assertToken(int token) throws CalFacadeException
      Asserts that the next token in the stream matches the specified token.
      Parameters:
      token - expected token
      Throws:
      CalFacadeException
    • assertWord

      public void assertWord() throws CalFacadeException
      Throws:
      CalFacadeException
    • assertString

      public void assertString() throws CalFacadeException
      Throws:
      CalFacadeException
    • testString

      public boolean testString() throws CalFacadeException
      Returns:
      true if it's a quoted string
      Throws:
      CalFacadeException
    • assertToken

      public void assertToken(String token) throws CalFacadeException
      Asserts that the next token in the stream matches the specified token. This method is case-sensitive.
      Parameters:
      token -
      Throws:
      CalFacadeException
    • assertToken

      public void assertToken(String token, boolean ignoreCase) throws CalFacadeException
      Asserts that the next token in the stream matches the specified token.
      Parameters:
      token - expected token
      ignoreCase -
      Throws:
      CalFacadeException
    • atEof

      public boolean atEof()
      Returns:
      boolean true if eof flagged
    • testToken

      public boolean testToken(int token) throws CalFacadeException
      Tests that the next token in the stream matches the specified token. This method is case-sensitive.
      Parameters:
      token -
      Returns:
      boolean
      Throws:
      CalFacadeException
    • testToken

      public boolean testToken(String token) throws CalFacadeException
      Tests if the next token in the stream matches the specified token.
      Parameters:
      token - expected token
      Returns:
      int
      Throws:
      CalFacadeException
    • testToken

      public boolean testToken(String token, boolean ignoreCase) throws CalFacadeException
      Tests if the next token in the stream matches the specified token.
      Parameters:
      token - expected token
      ignoreCase -
      Returns:
      boolean
      Throws:
      CalFacadeException
    • skipWhitespace

      public void skipWhitespace() throws CalFacadeException
      Absorbs extraneous newlines.
      Throws:
      CalFacadeException
    • escapeQuotes

      public static String escapeQuotes(String s)
    • getLogger

      public org.bedework.util.logging.BwLogger getLogger()
      Specified by:
      getLogger in interface org.bedework.util.logging.Logged