org.apache.commons.httpclient
Class WireLogOutputStream

java.lang.Object
  |
  +--java.io.OutputStream
        |
        +--java.io.FilterOutputStream
              |
              +--org.apache.commons.httpclient.WireLogOutputStream

class WireLogOutputStream
extends FilterOutputStream

Logs all data written to the wire LOG.

Since:
2.0beta1
Author:
Oleg Kalnichevski

Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
WireLogOutputStream(OutputStream out, Wire wire)
          Create an instance that wraps the specified output stream.
 
Method Summary
 void write(byte[] b)
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class java.io.FilterOutputStream
close, flush
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WireLogOutputStream

public WireLogOutputStream(OutputStream out,
                           Wire wire)
Create an instance that wraps the specified output stream.
Parameters:
out - The output stream.
wire - The Wire log to use.
Method Detail

write

public void write(byte[] b,
                  int off,
                  int len)
           throws IOException
Overrides:
write in class FilterOutputStream
See Also:
OutputStream.write(byte[], int, int)

write

public void write(int b)
           throws IOException
Overrides:
write in class FilterOutputStream
See Also:
java.io.OutputStream#write()

write

public void write(byte[] b)
           throws IOException
Overrides:
write in class FilterOutputStream
See Also:
OutputStream.write(byte[])


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