org.caleigo.toolkit.tunnel
Class HTTPTunnel.HTTPTunnelOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byorg.caleigo.toolkit.tunnel.HTTPTunnel.HTTPTunnelOutputStream
Enclosing class:
HTTPTunnel

protected class HTTPTunnel.HTTPTunnelOutputStream
extends java.io.OutputStream


Field Summary
protected  java.io.ByteArrayOutputStream mBuffer
           
protected  int mSessionID
           
 
Constructor Summary
HTTPTunnel.HTTPTunnelOutputStream(int sessionID)
           
 
Method Summary
 void close()
           
 void flush()
           
protected  void sendMessage(java.lang.Object message)
           
 void write(byte[] b)
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mSessionID

protected int mSessionID

mBuffer

protected java.io.ByteArrayOutputStream mBuffer
Constructor Detail

HTTPTunnel.HTTPTunnelOutputStream

public HTTPTunnel.HTTPTunnelOutputStream(int sessionID)
Method Detail

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException

write

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

write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException
Throws:
java.io.IOException

write

public void write(int b)
           throws java.io.IOException
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Throws:
java.io.IOException

sendMessage

protected void sendMessage(java.lang.Object message)
                    throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2005 Caleigo. All Rights Reserved.