On Tue, Jul 21, 2009 at 4:25 AM, Radwen ANIBA<[email protected]> wrote: > Hello every one, > > Well when playing a little bit with JCAS I was wondering how to get directly > the path to the document treated within AE without expressing it directly. > > What I want to do is to get the path and the document name eg > /here/in/this/folder/Document.txt > > Is there any extension of arg0.getDocumentText() method or something like ? >
This information isn't build into the framework, but there are some examples showing how to do it. There's a type called SourceDocumentInformation that is populated by the FileSystemCollectionReader and then used in the XMI Writer CAS Consumer (among others). -Adam
