Interface WrapperOutputStream
- All Known Implementing Classes:
IgnoreCloseOutputStream
,OutputStreamSelector
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public interface WrapperOutputStream
Allows for nested OutputStream wrappers and getting access to the unwrapped stream.
- Since:
- TODO
-
Method Summary
Modifier and TypeMethodDescriptionunwrap()
Unwraps this stream, potentially forcing unwritten data to be flushed.default OutputStream
Unwraps this stream, recursively descending through any further WrapperOutputStream instances.
-
Method Details
-
unwrap
Unwraps this stream, potentially forcing unwritten data to be flushed.- Returns:
- the underlying stream being wrapped
- Throws:
IOException
- if an exception occurs preparing the unwrapped referenceIllegalStateException
- if this stream is closed
-
unwrapRecursively
Unwraps this stream, recursively descending through any further WrapperOutputStream instances.- Returns:
- the underlying stream being wrapped
- Throws:
IOException
- if an exception occurs during any unwrap stageIllegalStateException
- if this stream is closed
-