public class AtomicFileOutputStream extends FilterOutputStream
out
Constructor and Description |
---|
AtomicFileOutputStream(File f) |
Modifier and Type | Method and 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.
|
flush, write, write
public AtomicFileOutputStream(File f) throws FileNotFoundException
FileNotFoundException
public void write(byte[] b, int off, int len) throws IOException
write
in class FilterOutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FilterOutputStream
IOException
public void abort()
Copyright © 2008–2021 The Apache Software Foundation. All rights reserved.