Package hudson.util.io
Class ReopenableFileOutputStream
java.lang.Object
java.io.OutputStream
hudson.util.io.ReopenableFileOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
- Direct Known Subclasses:
ReopenableRotatingFileOutputStream
Deprecated.
OutputStream that writes to a file.
Unlike regular FileOutputStream, this implementation allows the caller to close,
and then keep writing.
- Author:
- Kohsuke Kawaguchi
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Deprecated.voidflush()Deprecated.voidrewind()Deprecated.In addition to close, ensure that the next "open" would truncate the file.voidwrite(byte[] b) Deprecated.voidwrite(byte[] b, int off, int len) Deprecated.voidwrite(int b) Deprecated.Methods inherited from class java.io.OutputStream
nullOutputStream
-
Field Details
-
out
Deprecated.
-
-
Constructor Details
-
ReopenableFileOutputStream
Deprecated.
-
-
Method Details
-
write
Deprecated.- Specified by:
writein classOutputStream- Throws:
IOException
-
write
Deprecated.- Overrides:
writein classOutputStream- Throws:
IOException
-
write
Deprecated.- Overrides:
writein classOutputStream- Throws:
IOException
-
flush
Deprecated.- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
Deprecated.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
rewind
Deprecated.In addition to close, ensure that the next "open" would truncate the file.- Throws:
IOException
-
RewindableFileOutputStream