public class WriteIfDifferentOutputStream extends OutputStream
| Constructor and Description |
|---|
WriteIfDifferentOutputStream(File file) |
WriteIfDifferentOutputStream(RandomAccessFile randFile) |
WriteIfDifferentOutputStream(String filename) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isChanged()
At this point, have we changed the file?
It's possible to not change a file until close() is called.
|
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
flush, writepublic WriteIfDifferentOutputStream(RandomAccessFile randFile) throws IOException
IOExceptionpublic WriteIfDifferentOutputStream(String filename) throws IOException
IOExceptionpublic WriteIfDifferentOutputStream(File file) throws IOException
IOExceptionpublic void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic boolean isChanged()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionCopyright © 2017. All Rights Reserved.