Hi All,
I understood that Escher layer is used for reading of embedded objects. I
look at the interfaces, but I still don't understand how I can read the
objects! I cannot receive their InputStream, their type, name ant etc.
I couldn't find any example that really read meaningful objects. I
understood that it reads something, but what exactly - it is no clear at
all!
I found that code:
Entry entry = (Entry) iter.next();
System.out.println("found entry: " + entry.getName());
if (entry instanceof DirectoryEntry)
{
iterateEntry((DirectoryEntry)entry);
// .. recurse into this directory
} else if (entry instanceof DocumentEntry)
{
DocumentEntry de = (DocumentEntry)entry;
System.out.println("de.getName " + de.getName());
System.out.println("de.getSize " + de.getSize());
// entry is a document, which you can read
} else
{
// We're not interested in any other type
}
But the interface of the found object (no matter what it is) gives you
nothing.
There is another piece of code:
DocumentEntry document = (DocumentEntry)dir.getEntry("Workbook");
DocumentInputStream dstream = new DocumentInputStream(document);
But again - what do you have???
Does anyone have implement reading of embedded objects?
If so please give me an example, in otherwise tell me if it is possible at
all.
10x in advance
Best Regards
Zhivko