protected InputStream getInputStream(
     XmlRpcStreamRequestConfig pConfig, ServerStreamConnection pConnection) throws IOException {
   InputStream istream = pConnection.newInputStream();
   if (pConfig.isEnabledForExtensions() && pConfig.isGzipCompressing()) {
     istream = new GZIPInputStream(istream);
   }
   return istream;
 }
 /**
  * Called to prepare the output stream. Typically used for enabling compression, or similar
  * filters.
  *
  * @param pConnection The connection object.
  */
 protected OutputStream getOutputStream(
     ServerStreamConnection pConnection, XmlRpcStreamRequestConfig pConfig, OutputStream pStream)
     throws IOException {
   if (pConfig.isEnabledForExtensions() && pConfig.isGzipRequesting()) {
     return new GZIPOutputStream(pStream);
   } else {
     return pStream;
   }
 }