FindBugs™ 1.3.9

edu.umd.cs.findbugs.xml
Class QuoteMetaCharacters

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

public abstract class QuoteMetaCharacters
extends java.lang.Object

Quote metacharacters in a String.

Author:
David Hovemeyer
See Also:
MetaCharacterMap

Constructor Summary
QuoteMetaCharacters(java.lang.String text, MetaCharacterMap map)
          Constructor.
 
Method Summary
abstract  void emitLiteral(java.lang.String s)
          Downcall method to emit literal text, in which any occurrences of the metacharacters are quoted.
 void process()
          Quote metacharacters in the text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuoteMetaCharacters

public QuoteMetaCharacters(@NonNull
                           java.lang.String text,
                           @NonNull
                           MetaCharacterMap map)
Constructor.

Parameters:
text - the text in which we want to quote metacharacters
map - the MetaCharacterMap
Method Detail

process

public void process()
             throws java.io.IOException
Quote metacharacters in the text.

Throws:
java.io.IOException

emitLiteral

public abstract void emitLiteral(java.lang.String s)
                          throws java.io.IOException
Downcall method to emit literal text, in which any occurrences of the metacharacters are quoted.

Parameters:
s - the literal text to emit
Throws:
java.io.IOException

FindBugs™ 1.3.9

FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.