@FunctionalInterface public interface TypeAwareOutputSupplier
OutputStream after receiving the content type for the data that will be streamed to it.| Modifier and Type | Method and Description |
|---|---|
OutputStream |
getStream(String contentType)
Returns an
OutputStream, given the supplied content type. |
@Nonnull OutputStream getStream(@Nonnull String contentType) throws IOException
OutputStream, given the supplied content type. This gives the implementation a chance to act
on the content type, perhaps setting HTTP headers or preparing to validate the streamed data.contentType - the content type for the data that will be written to the streamIOException - if a stream cannot be providedCopyright © 2023 Atlassian. All rights reserved.