if (outputFile.exists())
outputFile.delete();
outputFile.createNewFile();
this.outputStream = new NodeOutputStream(new BufferedOutputStream(new FileOutputStream(outputFile)));
// First bit of each file is the completeMetadata flag
this.outputStream.write(this.completeMetadata ? 1 : 0);
} catch (IOException e) {
e.printStackTrace();