View Javadoc

1   package com.atlassian.plugin.webresource;
2   
3   import java.io.IOException;
4   import java.io.OutputStream;
5   
6   /**
7    * Implemented by classes that want to annotate the write of a plugin resource.
8    */
9   public interface ResourceContentAnnotator
10  {
11      /**
12       * Called before the resource content is written.
13       * 
14       * @param stream
15       * @throws IOException if there is a problem writing the annotation. 
16       */
17      void before(OutputStream stream) throws IOException;
18      
19      /**
20       * Called after the resource content is written.
21       * 
22       * @param stream
23       * @throws IOException if there is a problem writing the annotation.
24       */
25      void after(OutputStream stream) throws IOException;
26  }