Re: BufferedInputReader

1999-12-22 Thread Archie Cobbs
Kero van Gelder writes: > I guess I'll ByteArray my files instead of Buffering them. Fast enough > and no problems with 2k boundaries. Lucky for me my files are only > several 100k long. Or just enclose your skip() calls in a loop.. eg. for (int need = 8192; need > 0; ) { need -= in.skip(

Re: BufferedInputReader

1999-12-22 Thread Kero van Gelder
> > I encountered a small problem using the BufferedInputStream. > > When telling it to skip a big number of bytes, it stops at the first > > 2k boundary (or, more precisely, from position 32 to skip 37919 bytes > > lets it stop at position 2048). > > This is not a bug. The skip() method as def

Re: BufferedInputReader

1999-12-21 Thread Archie Cobbs
Kero van Gelder writes: > I encountered a small problem using the BufferedInputStream. > When telling it to skip a big number of bytes, it stops at the first > 2k boundary (or, more precisely, from position 32 to skip 37919 bytes > lets it stop at position 2048). > > Removing the BufferedInputSt

BufferedInputReader

1999-12-21 Thread Kero van Gelder
Hi all! I encountered a small problem using the BufferedInputStream. When telling it to skip a big number of bytes, it stops at the first 2k boundary (or, more precisely, from position 32 to skip 37919 bytes lets it stop at position 2048). Removing the BufferedInputStream and using only the Byt