public void parse(InputStream is, ContentHandler handler, Metadata metadata, ParseContext context) throws IOException, SAXException, TikaException {

            File deployArea = new File(IOUtils.toString(is, UTF_8));
            File[] versions = deployArea.listFiles(pathname -> !pathname
                    .getName()
                    .startsWith("current"));

            XHTMLContentHandler xhtml = new XHTMLContentHandler(handler, metadata);
            xhtml.startDocument();
            for (File v : versions) {
                if (isSymlink(v)) {
                    continue;
                }
                xhtml.startElement("a", "href", v
                        .toURI()
                        .toURL()
                        .toExternalForm());
                xhtml.characters(v.getName());
                xhtml.endElement("a");
            }
        }
Demonstrates Tika and its ability to sense symlinks.
tika-example/src/main/java/org/apache/tika/example/RollbackSoftware.java