private void prepareInputStream() {
try {
this.releaseInputStream();
this.releaseOutputStream();
this.inputStream = new NodeInputStream(new BufferedInputStream(new FileInputStream(new File(this.fileName))));
// First bit of each file is the completeMetadata flag
this.completeMetadata = (this.inputStream.read() == 1);
} catch (IOException e) {
e.printStackTrace();