org.apache.commons.httpclient
Class WireLogInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended byjava.io.FilterInputStream
          extended byorg.apache.commons.httpclient.WireLogInputStream

class WireLogInputStream
extends java.io.FilterInputStream

Logs all data read to the wire LOG.

Since:
2.0
Author:
Ortwin Gl�ck, Mike Bowler, Oleg Kalnichevski

Constructor Summary
WireLogInputStream(java.io.InputStream in, Wire wire)
          Create an instance that wraps the specified input stream.
 
Method Summary
 int read()
           
 int read(byte[] b)
           
 int read(byte[] b, int off, int len)
           
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WireLogInputStream

public WireLogInputStream(java.io.InputStream in,
                          Wire wire)
Create an instance that wraps the specified input stream.

Parameters:
in - The input stream.
wire - The wire log to use.
Method Detail

read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
Throws:
java.io.IOException
See Also:
InputStream.read(byte[], int, int)

read

public int read()
         throws java.io.IOException
Throws:
java.io.IOException
See Also:
InputStream.read()

read

public int read(byte[] b)
         throws java.io.IOException
Throws:
java.io.IOException
See Also:
InputStream.read(byte[])


Copyright © 2001-2004 Apache Software Foundation. All Rights Reserved.