KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > util > license > TestLicense


1 package org.sapia.util.license;
2
3 import java.io.IOException JavaDoc;
4
5 /**
6  * @author Yanick Duchesne
7  *
8  * <dl>
9  * <dt><b>Copyright:</b><dd>Copyright &#169; 2002-2004 <a HREF="http://www.sapia-oss.org">Sapia Open Source Software</a>. All Rights Reserved.</dd></dt>
10  * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the
11  * <a HREF="http://www.sapia-oss.org/license.html">license page</a> at the Sapia OSS web site</dd></dt>
12  * </dl>
13  */

14 public class TestLicense implements License{
15   
16   boolean valid;
17   
18   /**
19    * @see org.sapia.util.license.License#activate(java.lang.Object)
20    */

21   public void activate(Object JavaDoc context) {
22    
23   }
24   
25   public boolean isValid(Object JavaDoc context) {
26     return valid;
27   }
28   
29   /**
30    * @see org.sapia.util.license.License#getBytes()
31    */

32   public byte[] getBytes() throws IOException JavaDoc {
33     return Boolean.toString(valid).getBytes();
34   }
35
36 }
37
Popular Tags