public abstract class AbstractOutputStream extends OutputStream
Since a single socket's output stream may be used to write multiple HTTP requests to the same server, subclasses should not close the socket stream.
Modifier and Type | Field and Description |
---|---|
protected boolean |
closed |
Constructor and Description |
---|
AbstractOutputStream() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkNotClosed() |
boolean |
isClosed()
Returns true if this stream was closed locally.
|
void |
write(int data) |
close, flush, write, write
public final void write(int data) throws IOException
write
in class OutputStream
IOException
protected final void checkNotClosed() throws IOException
IOException
public boolean isClosed()
Copyright © 2014. All rights reserved.