au.com.lastweekend.cgi
Class FastCGIOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by au.com.lastweekend.cgi.FastCGIOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class FastCGIOutputStream
extends java.io.FilterOutputStream


Field Summary
protected  byte[] _contentBuffer
           
protected  int _count
           
protected  int _requestId
           
protected static byte[] FCGI_PADDING_DATA
           
protected static org.slf4j.Logger LOG
           
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
FastCGIOutputStream(int requestId, java.io.OutputStream outputStream)
           
 
Method Summary
protected  void endStreamRecord()
           
 void flush()
           
protected  void startRecord(byte type)
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
protected static void writeLong(int aLong, java.io.OutputStream out)
           
protected static void writeParamLength(int length, java.io.OutputStream out)
           
protected  void writeRecord()
           
protected static void writeShort(int aShort, java.io.OutputStream out)
           
 
Methods inherited from class java.io.FilterOutputStream
close, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static final org.slf4j.Logger LOG

FCGI_PADDING_DATA

protected static final byte[] FCGI_PADDING_DATA

_requestId

protected int _requestId

_contentBuffer

protected byte[] _contentBuffer

_count

protected int _count
Constructor Detail

FastCGIOutputStream

public FastCGIOutputStream(int requestId,
                           java.io.OutputStream outputStream)
Method Detail

writeShort

protected static final void writeShort(int aShort,
                                       java.io.OutputStream out)
                                throws java.io.IOException
Throws:
java.io.IOException

writeParamLength

protected static final void writeParamLength(int length,
                                             java.io.OutputStream out)
                                      throws java.io.IOException
Throws:
java.io.IOException

writeLong

protected static final void writeLong(int aLong,
                                      java.io.OutputStream out)
                               throws java.io.IOException
Throws:
java.io.IOException

endStreamRecord

protected void endStreamRecord()
                        throws java.io.IOException
Throws:
java.io.IOException

startRecord

protected void startRecord(byte type)
                    throws java.io.IOException
Throws:
java.io.IOException

writeRecord

protected void writeRecord()
                    throws java.io.IOException
Throws:
java.io.IOException

write

public void write(int b)
           throws java.io.IOException
Overrides:
write in class java.io.FilterOutputStream
Throws:
java.io.IOException

write

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

flush

public void flush()
           throws java.io.IOException
Specified by:
flush in interface java.io.Flushable
Overrides:
flush in class java.io.FilterOutputStream
Throws:
java.io.IOException


Copyright © 2008. All Rights Reserved.