au.com.lastweekend.cgi
Class FastCGIOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
au.com.lastweekend.cgi.FastCGIOutputStream
- All Implemented Interfaces:
- java.io.Closeable, java.io.Flushable
public class FastCGIOutputStream
- extends java.io.FilterOutputStream
| Fields inherited from class java.io.FilterOutputStream |
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 |
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
FastCGIOutputStream
public FastCGIOutputStream(int requestId,
java.io.OutputStream outputStream)
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.