php.java.bridge.http
Class FCGIOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by php.java.bridge.http.FCGIConnectionOutputStream
          extended by php.java.bridge.http.FCGIOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class FCGIOutputStream
extends FCGIConnectionOutputStream

A FastCGI OutputStream

Author:
jostb

Constructor Summary
FCGIOutputStream()
           
 
Method Summary
 void write(int b)
          
 void write(int type, byte[] buf)
           
 void write(int type, byte[] buf, int length)
          Write a FCGI packet
 void writeBegin()
          Start the FCGI_RESPONDER conversation
 void writeParams(java.util.Map props)
          Write FCGI Params according to FCGI spec
 
Methods inherited from class php.java.bridge.http.FCGIConnectionOutputStream
close, flush, write, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FCGIOutputStream

public FCGIOutputStream()
Method Detail

write

public void write(int type,
                  byte[] buf)
           throws FCGIConnectionException
Throws:
FCGIConnectionException

write

public void write(int type,
                  byte[] buf,
                  int length)
           throws FCGIConnectionException
Write a FCGI packet

Parameters:
type - the packet type
buf - the output buffer
length - the packet length
Throws:
FCGIConnectionException

writeBegin

public void writeBegin()
                throws FCGIConnectionException
Start the FCGI_RESPONDER conversation

Throws:
FCGIConnectionException

writeParams

public void writeParams(java.util.Map props)
                 throws FCGIConnectionException
Write FCGI Params according to FCGI spec

Parameters:
props -
Throws:
FCGIConnectionException

write

public void write(int b)
Description copied from class: FCGIConnectionOutputStream

Overrides:
write in class FCGIConnectionOutputStream