java.io.Closeable, java.io.Flushable, java.lang.AutoCloseablepublic class AtomicFileOutputStream
extends java.io.FilterOutputStream
| Constructor | Description |
|---|---|
AtomicFileOutputStream(java.io.File f) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
abort() |
Close the atomic file, but do not "commit" the temporary file on top of
the destination.
|
void |
close() |
|
void |
write(byte[] b,
int off,
int len) |
The default write method in FilterOutputStream does not call the write
method of its underlying input stream with the same arguments.
|
public AtomicFileOutputStream(java.io.File f)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.FilterOutputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeableclose in class java.io.FilterOutputStreamjava.io.IOExceptionpublic void abort()
Copyright © 2018 The Apache Software Foundation