@Test public void testUnicodeStringInput() throws Exception { String text = FileUtils.readFileToString(new File(TEST_FILE), "UTF-8"); assertTrue(StringUtils.isNotBlank(text)); AsciiFilter af = new AsciiFilter(); String filtered = af.filter(text); LOG.info("filtered: " + filtered); assertTrue(TEST_STRING.equals(filtered)); }
@Override public String filter(String text) { if (StringUtils.isBlank(text)) { return text; } return AsciiService.toASCII8(text); }
AsciiFilter implements TextFilter { @Override public String filter(String text) { if (StringUtils.isBlank(text)) { return text; } return AsciiService.toASCII8(text); } }
AsciiFilter implements TextFilter { @Override public String filter(String text) { if (StringUtils.isBlank(text)) { return text; } return AsciiService.toASCII8(text); }  }
AsciiFilter implements TextFilter { @Override public String filter(String text) { if (StringUtils.isBlank(text)) { return text; } return AsciiService.toASCII8(text); }  @Override String filter(String text); @Override String filter(InputStream inputStream); @Override String filter(InputStream inputStream, String charsetName); }
AsciiFilter implements TextFilter { @Override public String filter(String text) { if (StringUtils.isBlank(text)) { return text; } return AsciiService.toASCII8(text); }  @Override String filter(String text); @Override String filter(InputStream inputStream); @Override String filter(InputStream inputStream, String charsetName);  }