Class QuoteMetaCharacters

java.lang.Object
edu.umd.cs.findbugs.xml.QuoteMetaCharacters

public abstract class QuoteMetaCharacters extends Object
Quote metacharacters in a String.
Author:
David Hovemeyer
See Also:
  • Constructor Details

    • QuoteMetaCharacters

      public QuoteMetaCharacters(@Nonnull String text, @Nonnull MetaCharacterMap map)
      Constructor.
      Parameters:
      text - the text in which we want to quote metacharacters
      map - the MetaCharacterMap
  • Method Details

    • process

      public void process() throws IOException
      Quote metacharacters in the text.
      Throws:
      IOException
    • emitLiteral

      public abstract void emitLiteral(String s) throws IOException
      Downcall method to emit literal text, in which any occurrences of the metacharacters are quoted.
      Parameters:
      s - the literal text to emit
      Throws:
      IOException