1 19 20 package org.netbeans.modules.versioning.system.cvss; 21 22 import org.netbeans.lib.cvsclient.request.Request; 23 import org.netbeans.lib.cvsclient.request.GzipStreamRequest; 24 25 import java.io.*; 26 import java.util.zip.GZIPInputStream ; 27 28 34 class CvsLiteGzippedFileHandler extends CvsLiteFileHandler { 35 36 41 public Request[] getInitialisationRequests() { 42 return new Request[]{ 43 new GzipStreamRequest() 44 }; 45 } 46 47 protected Reader getProcessedReader(File f) throws IOException { 48 return new InputStreamReader(new GZIPInputStream (new 49 FileInputStream(f))); 50 } 51 52 protected InputStream getProcessedInputStream(File f) throws IOException { 53 return new GZIPInputStream (new FileInputStream(f)); 54 } 55 56 } 57 | Popular Tags |