@NotThreadSafe public abstract class DisconnectingOutputStream extends DecoratingOutputStream
DisconnectingInputStream
delegate
Modifier | Constructor and Description |
---|---|
protected |
DisconnectingOutputStream(OutputStream out) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkOpen()
|
abstract void |
close() |
void |
flush() |
abstract boolean |
isOpen() |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
toString, write
protected DisconnectingOutputStream(@Nullable OutputStream out)
protected final void checkOpen() throws OutputClosedException
OutputClosedException
- iff isOpen()
returns false
.public abstract void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class DecoratingOutputStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class DecoratingOutputStream
IOException
public abstract boolean isOpen()
public void write(byte[] b, int off, int len) throws IOException
write
in class DecoratingOutputStream
IOException
public void write(int b) throws IOException
write
in class DecoratingOutputStream
IOException
Copyright © 2005–2018 Schlichtherle IT Services. All rights reserved.