public class XmlFilter extends Object implements TextFilter
| Constructor and Description |
|---|
XmlFilter() |
| Modifier and Type | Method and Description |
|---|---|
String |
filter(InputStream inputStream)
Create a new String from the text found in the input stream replacing invalid characters
with valid characters.
|
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.
|
static String |
toXml10(String str)
Return a copy of the input string with non XML-1.0 characters replaced by spaces.
|
public String filter(String text)
TextFilterfilter in interface TextFiltertext - The text to filter for non XML-1.0 characters.TextFilter.filter(java.lang.String)public String filter(InputStream inputStream) throws IOException
TextFilterfilter in interface TextFilterinputStream - An input stream that is read in, filtered, and returned as a string.IOException - of the stream cannot be read.TextFilter.filter(java.io.InputStream)public String filter(InputStream inputStream, String charsetName) throws IOException
TextFilterfilter in interface TextFilterinputStream - An input stream that is read in, filtered, and returned as a string.charsetName - A charset to use for the stream.IOException - of the stream cannot be read.TextFilter.filter(java.io.InputStream, java.lang.String)Copyright © 2018 Department of Veterans Affairs. All Rights Reserved.