private void writeCompressedText ( File file , byte [ ] compressedContent ) throws IOException { ByteArrayInputStream bais = new ByteArrayInputStream ( compressedContent ) ; GZIPInputStream gis = new GZIPInputStream ( bais ) ; BufferedReader input = new BufferedReader ( new InputStreamReader ( gis ) ) ; BufferedWriter output = new BufferedWriter ( new FileWriter ( file ) ) ; String line ; while ( ( line = input . readLine ( ) ) != null ) { output . write ( line ) ; output . write ( ' ' ) ; } input . close ( ) ; gis . close ( ) ; bais . close ( ) ; output . close ( ) ; }
Uncompresses the given textual content and writes it to the given file .