@Test public void testSimple2() throws IOException { File f = File.createTempFile("testSimple", "txt"); SimpleCsvListener listener = new SimpleCsvListener(f) .setIncludeFeatures(true) .setSeparator('|') .setExitOnError(false) .setAnnotationTypeFilter(Token.class.getCanonicalName(), WordToken.class.getCanonicalName()); listener.entityProcessComplete(cas, null); String b = FileUtils.readFileToString(f).trim(); assertEquals("\"1\"|\"0\"|\"29\"|\"gov.va.vinci.leo.types.CSI\"|\"01234567890123456789012345678\"|\"[ID = 1]\"|\"[Locator = null]\"|\"[RowData = null]\"|\"[PropertiesKeys = null]\"|\"[PropertiesValues = null]\"\n" + "\"1\"|\"0\"|\"30\"|\"gov.va.vinci.leo.whitespace.types.Token\"|\"012345678901234567890123456789\"|\"[TokenType = 1]\"|\"[AnnotationFeature = 01234567890123456789012345678]\"", b.toString()); }
public <T extends SimpleCsvListener> T setIncludeFeatures(boolean includeFeatures) { this.includeFeatures = includeFeatures; return (T) this; }
SimpleCsvListener extends BaseCsvListener { public <T extends SimpleCsvListener> T setIncludeFeatures(boolean includeFeatures) { this.includeFeatures = includeFeatures; return (T) this; } }
SimpleCsvListener extends BaseCsvListener { public <T extends SimpleCsvListener> T setIncludeFeatures(boolean includeFeatures) { this.includeFeatures = includeFeatures; return (T) this; } SimpleCsvListener(File file);  SimpleCsvListener(OutputStream stream);  SimpleCsvListener(Writer writer); }
SimpleCsvListener extends BaseCsvListener { public <T extends SimpleCsvListener> T setIncludeFeatures(boolean includeFeatures) { this.includeFeatures = includeFeatures; return (T) this; } SimpleCsvListener(File file);  SimpleCsvListener(OutputStream stream);  SimpleCsvListener(Writer writer); boolean isIncludeFeatures(); T setIncludeFeatures(boolean includeFeatures); }
SimpleCsvListener extends BaseCsvListener { public <T extends SimpleCsvListener> T setIncludeFeatures(boolean includeFeatures) { this.includeFeatures = includeFeatures; return (T) this; } SimpleCsvListener(File file);  SimpleCsvListener(OutputStream stream);  SimpleCsvListener(Writer writer); boolean isIncludeFeatures(); T setIncludeFeatures(boolean includeFeatures);  }