gzip « API « Java I/O Q&A





1. How do I get the InputStream of decompressed data from an InputStream of GZIPed data?    stackoverflow.com

I call a service which returns a gzipped file. I have the data as an InputStream (courtesy of javax.activation.DataHandler.getInputStream();) from the response. What I would like to do is, without writing ...

2. Reading a GZIP file from a FileChannel (Java NIO)    stackoverflow.com

I need to read/unpack a .gz file given a FileChannel. I've played around with extracting GZIP archives using GZIPInputStream, but this won't take a FileChannel. I don't have access to the ...

3. What could lead to the creation of false EOF in a GZip compressed data stream    stackoverflow.com

We are streaming data between a server (written in .Net running on Windows) to a client (written in Java running on Ubuntu) in batches. The data is in XML format. Occasionally ...

4. java nio and FileInputStream    stackoverflow.com

Basically I have this code to decompress some string that stores in a file:

public static String decompressRawText(File inFile) {
    InputStream in = null;
    InputStreamReader isr ...

5. GZIPInputStream end-of-file sequence in BufferedReader    stackoverflow.com

I use a Java BufferedReader object read, line-by-line, a GZIPInputStream that points to a valid GZIP archive that contains 1,000 lines of ASCII text, in typical CSV format. The code looks ...

6. Java - Converting a continuing InputStream into a String without waiting for close    stackoverflow.com

So at the problem is that I have a gzipped connection to a remote http streaming server, which spews data out at a high rate, and I wish to process each ...

7. Compressing and decompressing streams    stackoverflow.com

I found this article about simple proxy server implemented in JAVA: http://www.java2s.com/Code/Java/Network-Protocol/Asimpleproxyserver.htm The code simply gets some stream from the client, after sends it to the server and after it gets ...

8. Cascading Streams(Cipher,GZip,FileInput,ProgressMonitor)    coderanch.com

Note that there is no ProgressMonitorOutputStream... So I don't know if you want to monitor the progress of the writing process too... Otherwise, if the progress monitoring is not mandatory, you use almost the same code by replacing "Input" by "Output" and use write instead of read. You may have to adapt some parameter list of the constructors, check the API ...