if you are using 1.4.x and are dealing with files of size that won't blow you memory, you could read the file into a ByteBuffer and use a byte array (of size 10) to fetch the intermediate chunks.
eg
I use a variation of this style of code for library IO functions. Note that the example I'm using is adapted from a tip in
Sun Performance Tips - you can find more variations on the same there.
hth
[ May 15, 2004: Message edited by: clio katz ]