@Test public void testUnicodeReaderInput() throws Exception { FileInputStream fis = null; try { fis = new FileInputStream(TEST_FILE); assertNotNull(fis); AsciiFilter af = new AsciiFilter(); String filtered = af.filter(fis); assertTrue(TEST_STRING.equals(filtered)); } catch (Exception e) { fail("Exception thrown testing unicode filter, reader input:\n" + ExceptionUtils.getStackTrace(e)); } finally { if(fis != null) fis.close(); } }
@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);  }