org.bouncycastle.i18n.filter
Class SQLFilter

java.lang.Object
  extended by org.bouncycastle.i18n.filter.SQLFilter
All Implemented Interfaces:
Filter

public class SQLFilter
extends java.lang.Object
implements Filter

Filter for strings to store in a SQL table. escapes ' " = - / \ ; \r \n


Constructor Summary
SQLFilter()
           
 
Method Summary
 java.lang.String doFilter(java.lang.String input)
          Runs the filter on the input String and returns the filtered String
 java.lang.String doFilterUrl(java.lang.String input)
          Runs the filter on the input url and returns the filtered String
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLFilter

public SQLFilter()
Method Detail

doFilter

public java.lang.String doFilter(java.lang.String input)
Description copied from interface: Filter
Runs the filter on the input String and returns the filtered String

Specified by:
doFilter in interface Filter
Parameters:
input - input String
Returns:
filtered String

doFilterUrl

public java.lang.String doFilterUrl(java.lang.String input)
Description copied from interface: Filter
Runs the filter on the input url and returns the filtered String

Specified by:
doFilterUrl in interface Filter
Parameters:
input - input url String
Returns:
filtered String