1 22 package org.netbeans.lib.cvsclient.connection; 23 24 import java.io.*; 25 import java.util.zip.*; 26 27 import org.netbeans.lib.cvsclient.util.*; 28 29 33 public class GzipModifier extends Object implements ConnectionModifier { 34 37 public GzipModifier() { 38 } 39 40 public void modifyInputStream(LoggedDataInputStream ldis) 41 throws IOException { 42 GZIPInputStream gzis = new GZIPInputStream(ldis. 44 getUnderlyingStream()); 45 ldis.setUnderlyingStream(gzis); 47 } 48 49 public void modifyOutputStream(LoggedDataOutputStream ldos) 50 throws IOException { 51 ldos.setUnderlyingStream(new GZIPOutputStream(ldos. 53 getUnderlyingStream())); 54 } 55 } 56 | Popular Tags |