1 20 package org.netbeans.lib.cvsclient.file; 21 22 import java.io.*; 23 import java.util.zip.*; 24 25 import org.netbeans.lib.cvsclient.request.*; 26 27 32 public class GzippedFileHandler extends DefaultFileHandler { 33 36 private boolean isCompressed; 37 38 43 public Request[] getInitialisationRequests() { 44 return new Request[]{ 45 new GzipStreamRequest() 46 }; 47 } 48 49 protected Reader getProcessedReader(File f) throws IOException { 50 return new InputStreamReader(new GZIPInputStream(new 51 FileInputStream(f))); 52 } 53 54 protected InputStream getProcessedInputStream(File f) throws IOException { 55 return new GZIPInputStream(new FileInputStream(f)); 56 } 57 } | Popular Tags |