When I started this all out, the idea of non-blocking IO (the java.nio package) for reading file data seemed like a good idea, but the way I've coded things is to always expect X bytes to be read from the input which the blocking IO classes (java.io) would more likely guarantee.
Experiment with java.io for one of the files and see how it fits. Namely, use the DataInput interfaces since they let me read primitives from the input stream easily.
When I started this all out, the idea of non-blocking IO (the
java.nio
package) for reading file data seemed like a good idea, but the way I've coded things is to always expect X bytes to be read from the input which the blocking IO classes (java.io
) would more likely guarantee.Experiment with
java.io
for one of the files and see how it fits. Namely, use theDataInput
interfaces since they let me read primitives from the input stream easily.