OK, I think the method is so simple, I should implement a binary 
compound document file reader. It's only about six methods and two short 
data structures. So here's the idea:

Resolver.java:

Check for the 8-byte "magic number" that the file starts with -- I'm 
doing this already. If it is found, open the compound document and read 
the directory. The presence of a document called "Property Archive"  
will indicate this is a Spartan file.

Read the two documents Archive and Property Archive into a string 
buffer, close the file, and pass that string buffer on to the 
SpartanReader, which is already set to read the archive this way.

I imagine a very small class, "CompoundDocument", that you pass an input 
stream to, and it does the rest.

Q: What's the easiest way to read binary from our "buffered reader" we 
are setting up now?

Q: Can you read binary from a buffered reader by wrapping it some way or 
another?

Q: Totally different, better approach?

Bob





-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to