[prev in list] [next in list] [prev in thread] [next in thread]
List: lucene-user
Subject: Indexing sit (stuff it) files
From: "Luke Shannon" <lshannon () futurebrand ! com>
Date: 2005-03-02 22:44:28
Message-ID: 028901c51f79$646965e0$7703d00a () hypermedia ! com
[Download RAW message or body]
Hello;
I've almost completed my zip file indexer. I used the following to get an
InputStream for each file in the archive:
ZipFile zip = new ZipFile(new File(fileLocation));
ZipEntry zipEntry;
Enumeration files = zip.entries();
while (files.hasMoreElements()) {
zipEntry = (ZipEntry)files.nextElement();
//I have conditions here based on
zipEntry.getName().endsWith(".fileExtension) to determine which Document
Handler to use
//below is the inputstream I send the handler
InputStream in = zip.getInputStream(zipEntry);
}
So far this is looking ok (not quite done yet).
A request came in to index stuffit files. I'm hoping to be able to do
something similar as the above, but I haven't found a Java api to work with
this file type. Anyone have any experience with this?
Thanks,
Luke
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic