KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sf > packtag > strategy > PackStrategy


1 /**
2  * Project pack:tag >> http://packtag.sf.net
3  *
4  * This software is published under the terms of the LGPL
5  * License version 2.1, a copy of which has been included with this
6  * distribution in the 'lgpl.txt' file.
7  *
8  * Last author: $Author: danielgalan $
9  * Last modified: $Date: 2007/04/22 19:04:23 $
10  * Revision: $Revision: 1.1 $
11  *
12  * $Log: PackStrategy.java,v $
13  * Revision 1.1 2007/04/22 19:04:23 danielgalan
14  * pack.tag moved from subversion to good old CVS
15  *
16  */

17 package net.sf.packtag.strategy;
18
19 import java.io.InputStream JavaDoc;
20
21
22
23 /**
24  * A Strategy has to implement this Interface, the algorithm needs to return the packed
25  * resource.
26  *
27  * @author Daniel Galán y Martins
28  * @version $Revision: 1.1 $
29  */

30 public interface PackStrategy {
31
32     /**
33      * A algorithm returns a compressed resource from the Stream.
34      * Called once, when the resource is requested the first time.
35      *
36      * @param resourceAsStream The requested resource which should be compressed
37      * @return The compressed resource
38      */

39     public String JavaDoc pack(InputStream JavaDoc resourceAsStream) throws PackException;
40
41 }
42
Popular Tags