Package edu.umd.cs.findbugs.xml
Class QuoteMetaCharacters
java.lang.Object
edu.umd.cs.findbugs.xml.QuoteMetaCharacters
Quote metacharacters in a String.
- Author:
- David Hovemeyer
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
Downcall method to emit literal text, in which any occurrences of the metacharacters are quoted.void
process()
Quote metacharacters in the text.
-
Constructor Details
-
QuoteMetaCharacters
Constructor.- Parameters:
text
- the text in which we want to quote metacharactersmap
- the MetaCharacterMap
-
-
Method Details
-
process
Quote metacharacters in the text.- Throws:
IOException
-
emitLiteral
Downcall method to emit literal text, in which any occurrences of the metacharacters are quoted.- Parameters:
s
- the literal text to emit- Throws:
IOException
-