| java.io.FilterOutputStream com.martiansoftware.nailgun.NGOutputStream
NGOutputStream | class NGOutputStream extends java.io.FilterOutputStream (Code) | | Wraps an OutputStream to send writes in NailGun chunks. Because
multiple NGOutputStreams wrap the same OutputStream (that is,
the OutputStream obtained from the Socket connection with
the client), writes are synchronized on the underlying OutputStream.
If this were not the case, write interleaving could completely
break the NailGun protocol.
author: Marty Lamb |
Constructor Summary | |
public | NGOutputStream(java.io.OutputStream out, char code) Creates a new NGOutputStream wrapping the specified
OutputStream and using the specified Nailgun chunk code. |
Method Summary | |
public void | write(byte[] b) | public void | write(int b) | public void | write(byte[] b, int offset, int len) |
NGOutputStream | public NGOutputStream(java.io.OutputStream out, char code)(Code) | | Creates a new NGOutputStream wrapping the specified
OutputStream and using the specified Nailgun chunk code.
Parameters: out - the OutputStream to wrap Parameters: code - the NailGun chunk code associated with thisstream (i.e., '1' for stdout, '2' for stderr). |
write | public void write(byte[] b) throws IOException(Code) | | See Also: java.io.OutputStream.write(byte[]) |
write | public void write(int b) throws IOException(Code) | | See Also: java.io.OutputStream.write(int) |
write | public void write(byte[] b, int offset, int len) throws IOException(Code) | | See Also: java.io.OutputStream.write(byte[],int,int) |
|
|