public interface DynamicAttachmentProvider
The Provider needs to be thread-safe.
Modifier and Type | Method and Description |
---|---|
InputStream |
getAttachmentData(WikiContext context,
Attachment att)
Returns a stream of data for this attachment.
|
InputStream getAttachmentData(WikiContext context, Attachment att) throws ProviderException, IOException
context
- A Wiki Contextatt
- The Attachment for which the data should be received.ProviderException
- If something goes wrong internallyIOException
- If something goes wrong when reading the dataCopyright © 2001-2019 The Apache Software Foundation. All rights reserved.