@Internal public class UnownedOutputStream extends java.io.FilterOutputStream
OutputStream
wrapper which protects against the user attempting to modify the
underlying stream by closing it.Constructor and Description |
---|
UnownedOutputStream(java.io.OutputStream delegate) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
equals(@Nullable java.lang.Object obj) |
int |
hashCode() |
java.lang.String |
toString() |
void |
write(byte[] b,
int off,
int len) |
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.FilterOutputStream
java.io.IOException
public boolean equals(@Nullable java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public void write(byte[] b, int off, int len) throws java.io.IOException
write
in class java.io.FilterOutputStream
java.io.IOException