public class AsciiFilter extends Object implements TextFilter
| Constructor and Description | 
|---|
AsciiFilter()  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
filter(InputStream inputStream)
Create a new String with non-ascii chars replaced with ascii equivalents where applicable,
 otherwise replaces invalid char with '_'. 
 | 
String | 
filter(InputStream inputStream,
      String charsetName)
Create a new String from the text found in the input stream replacing invalid characters
 with valid characters. 
 | 
String | 
filter(String text)
Creates a new String from the input String with invalid characters replaced
 with valid characters. 
 | 
public String filter(String text)
TextFilterfilter in interface TextFiltertext - the text to filter.TextFilter.filter(java.lang.String)public String filter(InputStream inputStream) throws IOException
filter(InputStream, String)filter in interface TextFilterinputStream - the input stream to read from.IOException - if there is an error reading the streampublic String filter(InputStream inputStream, String charsetName) throws IOException
TextFilterfilter in interface TextFilterinputStream - the input stream to read from.charsetName - the characterset the document is in.IOException - if there is an error reading the streamTextFilter.filter(java.io.InputStream, java.lang.String)Copyright © 2018 Department of Veterans Affairs. All Rights Reserved.