org.apache.commons.httpclient
Class WireLogOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byjava.io.FilterOutputStream
          extended byorg.apache.commons.httpclient.WireLogOutputStream

class WireLogOutputStream
extends java.io.FilterOutputStream

Logs all data written to the wire LOG.

Since:
2.0beta1
Author:
Oleg Kalnichevski

Constructor Summary
WireLogOutputStream(java.io.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(java.io.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 java.io.IOException
Throws:
java.io.IOException
See Also:
OutputStream.write(byte[], int, int)

write

public void write(int b)
           throws java.io.IOException
Throws:
java.io.IOException
See Also:
java.io.OutputStream#write()

write

public void write(byte[] b)
           throws java.io.IOException
Throws:
java.io.IOException
See Also:
OutputStream.write(byte[])


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