OSDN Git Service

必要のないクラスを削除し,クラスの整理を行った.
[stigmata/stigmata.git] / src / main / java / jp / sourceforge / stigmata / BirthmarkExtractor.java
index 27d032a..75e05a1 100644 (file)
@@ -1,24 +1,19 @@
 package jp.sourceforge.stigmata;
 
-/*
- * $Id$
- */
-
 import java.io.InputStream;
 
-import jp.sourceforge.stigmata.spi.BirthmarkSpi;
+import jp.sourceforge.stigmata.spi.BirthmarkService;
 
 /**
  * extract birthmarks from given Java bytecode stream.
  * 
  * @author Haruaki TAMADA
- * @version $Revision$ 
  */
 public interface BirthmarkExtractor{
     /**
      * returns service provider interface of this extractor.
      */
-    public BirthmarkSpi getProvider();
+    public BirthmarkService getProvider();
 
     /**
      * create new birthmark.
@@ -36,6 +31,16 @@ public interface BirthmarkExtractor{
     public ExtractionUnit[] getAcceptableUnits();
 
     /**
+     * build birthmark element from given string.
+     */
+    public BirthmarkElement buildElement(String value);
+
+    /**
+     * extract birthmark from given stream with default environment.
+     */
+    public Birthmark extract(InputStream in) throws BirthmarkExtractionFailedException;
+
+    /**
      * extract birthmark from given stream with given environment.
      */
     public Birthmark extract(InputStream in, BirthmarkContext context) throws BirthmarkExtractionFailedException;