1 22 package org.netbeans.lib.cvsclient.request; 23 24 import java.io.*; 25 26 import org.netbeans.lib.cvsclient.connection.*; 27 28 33 public class GzipStreamRequest extends Request { 34 35 38 private int level = 6; 39 40 43 public GzipStreamRequest() { 44 } 45 46 50 public GzipStreamRequest(int level) { 51 this.level = level; 52 } 53 54 60 public String getRequestString() throws UnconfiguredRequestException { 61 return "Gzip-stream " + level + "\n"; } 63 64 69 public boolean isResponseExpected() { 70 return false; 71 } 72 73 76 public void modifyOutputStream(Connection connection) throws IOException { 77 connection.modifyOutputStream(new GzipModifier()); 78 } 79 80 83 public void modifyInputStream(Connection connection) throws IOException { 84 connection.modifyInputStream(new GzipModifier()); 85 } 86 87 91 public boolean modifiesInputStream() { 92 return true; 93 } 94 } 95 | Popular Tags |