1 package com.memoire.vainstall; 2 import java.io.IOException ; 3 import java.io.InputStream ; 4 import java.io.OutputStream ; 5 18 22 public abstract class LicenseKeySupport 23 { 24 25 public final class FieldInfo 26 { 27 28 public FieldInfo(String nm, int sz, String txt) 29 { 30 name = nm; 31 size = sz; 32 text = txt; 33 } 34 35 final public String name; 36 37 final public int size; 38 39 final public String text; 40 public String toString() 41 { 42 return "FieldInfo[name="+name+",size="+size+",text="+text+"]"; 43 } 44 } 45 47 public abstract boolean needsLicenseKey(); 48 53 public abstract String getRegistrationPage(); 54 55 58 public abstract FieldInfo[] getFieldInfo(); 59 64 public abstract void setFieldValues(String values[]); 65 68 public abstract boolean isLicenseKeyValid(); 69 76 public abstract OutputStream encodeStream(OutputStream is, String key) throws IOException ; 77 81 public abstract InputStream decodeStream(InputStream is) throws IOException ; 82 } | Popular Tags |