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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Deprecated.void
flush()
Deprecated.void
rewind()
Deprecated.In addition to close, ensure that the next "open" would truncate the file.void
write
(byte[] b) Deprecated.void
write
(byte[] b, int off, int len) Deprecated.void
write
(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:
write
in classOutputStream
- Throws:
IOException
-
write
Deprecated.- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
Deprecated.- Overrides:
write
in classOutputStream
- Throws:
IOException
-
flush
Deprecated.- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
close
Deprecated.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
rewind
Deprecated.In addition to close, ensure that the next "open" would truncate the file.- Throws:
IOException
-
RewindableFileOutputStream