Search in sources :

Example 1 with Tsv3XDeserializer

use of de.tudarmstadt.ukp.clarin.webanno.tsv.internal.tsv3x.Tsv3XDeserializer in project webanno by webanno.

the class WebannoTsv3XReader method getNext.

@Override
public void getNext(JCas aJCas) throws IOException, CollectionException {
    Resource res = nextFile();
    initCas(aJCas, res);
    try (LineNumberReader br = new LineNumberReader(new InputStreamReader(res.getInputStream(), encoding))) {
        new Tsv3XDeserializer().read(br, aJCas);
    }
}
Also used : InputStreamReader(java.io.InputStreamReader) Tsv3XDeserializer(de.tudarmstadt.ukp.clarin.webanno.tsv.internal.tsv3x.Tsv3XDeserializer) LineNumberReader(java.io.LineNumberReader)

Aggregations

Tsv3XDeserializer (de.tudarmstadt.ukp.clarin.webanno.tsv.internal.tsv3x.Tsv3XDeserializer)1 InputStreamReader (java.io.InputStreamReader)1 LineNumberReader (java.io.LineNumberReader)1