public void write ( final Writer outputWriter ) throws IOException { try ( final DataInputStream keyStream = entry . getKeyStream ( ) ; final DataInputStream valueStream = entry . getValueStream ( ) ; ) { outputWriter . write ( "Container: " ) ; outputWriter . write ( keyStream . readUTF ( ) ) ; outputWriter . write ( "\n" ) ; this . writeFiles ( valueStream , outputWriter ) ; } }
Writes the contents of the entry into the given outputWriter .