In the past I have used the XReader collection reader which extends
FilesCollectionReader. I don't remember if we have deprecated
FilesCollectionReader or not (we probably should!) Since XReader is a
collection reader I don't really like it because I much prefer the way
UriCollectionReader works. However, I still like reading and writing XMI
files. So, I think we should provide a convenience AE that works closely with
UriCollectionReader. The relevant lines of code that would go into the process
method are:
URI uri = ViewUriUtil.getURI(jCas);
InputStream is = uri.toURL().openStream();
XmiCasDeserializer.deserialize(is, jCas.getCas());
This way I don't have to have it in my own library. I'm not sure what the name
of it should be. XmiCasDeserializerAE seems kind of long winded. Perhaps just
XmiDeserializerAE.
Original issue reported on code.google.com by philip.o...@oracle.com on 30 Dec 2013 at 5:18
Original issue reported on code.google.com by
philip.o...@oracle.com
on 30 Dec 2013 at 5:18