class NGOutputStream
extends java.io.DataOutputStream
| Modifier and Type | Field and Description |
|---|---|
private java.lang.Object |
lock |
private byte |
streamCode |
| Constructor and Description |
|---|
NGOutputStream(java.io.OutputStream out,
byte streamCode)
Creates a new NGOutputStream wrapping the specified
OutputStream and using the specified Nailgun chunk code.
|
| Modifier and Type | Method and Description |
|---|---|
void |
write(byte[] b) |
void |
write(byte[] b,
int offset,
int len) |
void |
write(int b) |
public NGOutputStream(java.io.OutputStream out,
byte streamCode)
out - the OutputStream to wrapstreamCode - the NailGun chunk code associated with this
stream (i.e., '1' for stdout, '2' for stderr).public void write(byte[] b)
throws java.io.IOException
write in interface java.io.DataOutputwrite in class java.io.FilterOutputStreamjava.io.IOExceptionjava.io.OutputStream.write(byte[])public void write(int b)
throws java.io.IOException
write in interface java.io.DataOutputwrite in class java.io.DataOutputStreamjava.io.IOExceptionjava.io.OutputStream.write(int)public void write(byte[] b,
int offset,
int len)
throws java.io.IOException
write in interface java.io.DataOutputwrite in class java.io.DataOutputStreamjava.io.IOExceptionjava.io.OutputStream.write(byte[],int,int)