public class LockedOutputStream
extends java.io.BufferedOutputStream
Constructor and Description |
---|
LockedOutputStream(java.io.FileOutputStream out)
Creates a new instance by obtaining a lock on the underlying stream
that is held until the stream is closed.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
public LockedOutputStream(java.io.FileOutputStream out) throws java.io.IOException
out
- Output stream.java.io.IOException
- If a lock cannot be obtained on the file.