public void write ( final File folder ) throws IOException { try ( final DataInputStream keyStream = entry . getKeyStream ( ) ; final DataInputStream valueStream = entry . getValueStream ( ) ; ) { final String containerId = keyStream . readUTF ( ) ; try ( final Writer outputWriter = new OutputStreamWriter ( new FileOutputStream ( new File ( folder , containerId + ".txt" ) ) , StandardCharsets . UTF_8 ) ) { this . writeFiles ( valueStream , outputWriter ) ; } } }
Writes the logs stored in the entry as text files in folder one per container .