public interface DynamicAttachmentProvider
The Provider needs to be thread-safe.
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getAttachmentData(WikiContext context,
Attachment att)
Returns a stream of data for this attachment.
|
java.io.InputStream getAttachmentData(WikiContext context, Attachment att) throws ProviderException, java.io.IOException
context
- A Wiki Contextatt
- The Attachment for which the data should be received.ProviderException
- If something goes wrong internallyjava.io.IOException
- If something goes wrong when reading the datastSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.