@ThreadSafe public class LockOutputStream extends DecoratingOutputStream
Lock
.LockInputStream
out
Modifier | Constructor and Description |
---|---|
protected |
LockOutputStream(Lock lock) |
|
LockOutputStream(Lock lock,
OutputStream out) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
toString, write
protected LockOutputStream(Lock lock)
public LockOutputStream(Lock lock, @WillCloseWhenClosed OutputStream out)
@DischargesObligation public 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 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 © 2012–2018 Schlichtherle IT Services. All rights reserved.