On Wed, 2006-05-03 at 09:38 +0100, Richard Holland wrote: > Ah yes, I hadn't thought about that aspect. In which case, a Stream- > capable format-guesser is not going to be possible. But there's nothing > stopping Ola from reading/writing to Streams directly, as long as he > knows what format they're in.
I would tend to disagree about the impossibility of using streams. How much of the file is generally being read before the guess is made? I'm thinking very little is needed, especially compared to how much memory Java usually takes. It would not be very difficult to save that first part of the stream and then play it back once the guess is made. I kind of like the idea of using streams, in cases where you are not reading from a file. Having to write everything to a temporary file to satisfy the API isn't a very appealing solution, I think. I could code something up if people are interested. Francois _______________________________________________ Biojava-l mailing list - [email protected] http://lists.open-bio.org/mailman/listinfo/biojava-l
