1 package jp.sourceforge.stigmata.command;
3 import java.io.BufferedReader;
4 import java.io.IOException;
5 import java.io.InputStream;
6 import java.io.InputStreamReader;
8 import jp.sourceforge.stigmata.BirthmarkContext;
9 import jp.sourceforge.stigmata.Stigmata;
13 * @author Haruaki Tamada
15 public class LicenseCommand extends AbstractStigmataCommand{
17 public String getCommandString(){
22 public boolean perform(Stigmata stigmata, BirthmarkContext context, String[] args){
23 BufferedReader reader = null;
25 InputStream in = getClass().getResourceAsStream("/META-INF/license.txt");
26 reader = new BufferedReader(new InputStreamReader(in, "utf-8"));
29 while((line = reader.readLine()) != null){
30 System.out.println(line);
34 }catch(IOException ex){
40 } catch(IOException e){
41 throw new InternalError(e.getMessage());