Re: [Biojava-l] BufferedReader and FastaFormat

2002-03-05 Thread Matthew Pocock
I was having the same trouble, but it went away when I changed line 138 of FastaFormat to: char[] cache = new char[512]; Thomas - could this cache be auto-extended to avoid overflows? Thomas Down wrote: > On Tue, Mar 05, 2002 at 10:07:11AM +1300, Schreiber, Mark wrote: > >>java.io.IOExce

Re: [Biojava-l] BufferedReader and FastaFormat

2002-03-04 Thread Thomas Down
On Tue, Mar 05, 2002 at 10:07:11AM +1300, Schreiber, Mark wrote: > > java.io.IOException: Mark invalid > at java.io.BufferedReader.reset(BufferedReader.java:467) > at > org.biojava.bio.seq.io.FastaFormat.readSequenceData(FastaFormat.java:164 > ) > at > org.biojava.bio.seq.io.Fas

[Biojava-l] BufferedReader and FastaFormat

2002-03-04 Thread Schreiber, Mark
Hi - When working with small FASTA libraries (in terms of the number of entries) the following snippet of code works fine, try{ SequenceIterator i = SeqIOTools.readFastaDNA(new BufferedReader(new FileReader(f))); while(i.hasNext()){ Sequence s = i.nextSeque