public class ChangedFileOutputStream extends OutputStream
close() method. This results in missed/ignored IOExceptions in some
cases. First, OutputStream.flush() method does not actually flush buffer to the disk. Second, any problems writing to the
file will be reported as IOException thrown by close(), which are generally ignored.| Constructor and Description |
|---|
ChangedFileOutputStream(File file) |
ChangedFileOutputStream(File file,
org.sonatype.plexus.build.incremental.BuildContext buildContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
protected void |
writeIfNewOrChanged() |
flush, writepublic ChangedFileOutputStream(File file) throws FileNotFoundException
FileNotFoundExceptionpublic ChangedFileOutputStream(File file, org.sonatype.plexus.build.incremental.BuildContext buildContext) throws FileNotFoundException
FileNotFoundExceptionpublic void write(int b)
write in class OutputStreampublic void write(byte[] b,
int off,
int len)
write in class OutputStreampublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionprotected void writeIfNewOrChanged()
throws IOException
IOExceptionCopyright © 2005–2021 Eclipse Foundation. All rights reserved.