Commit [c2c5e5] Maximize Restore History

Added version 2.0.0

NEW
* Try all other preparators in case the designated preperator doesn't work
* Allow more than one wildcard mime declarations (positiv, negativ). Example: mimetype:"text/*" -mimetype:"text/plain"
* HtmlPreparator: Follows links in framesets

BUGFIX
* JavaPreperator: Enums will be parsed as well (Enum name and constants will be extracted)
* MP3Peparator works GenericAudioPreparator could handle read only files
* IndexWriterManager: Close all files to prevent for "Too many open files..." and "this IndexReader is closed" error

thtesche thtesche 2012-12-05

Til Schneider Til Schneider 2014-07-28

1 2 3 4 > >> (Page 1 of 4)
added src/net/sf/regain/crawler/document/PreparatorProfilerPair.java
added src/net/sf/regain/crawler/preparator/java/Type.java
changed build.properties.sample
changed build.xml
changed src
changed src/net
changed src/net/sf
changed src/net/sf/regain
changed src/net/sf/regain/crawler
changed src/net/sf/regain/crawler/document
changed src/net/sf/regain/crawler/document/DocumentFactory.java
changed src/net/sf/regain/crawler/plugin
changed src/net/sf/regain/crawler/plugin/CrawlerPlugin.java
changed src/net/sf/regain/crawler/preparator
changed src/net/sf/regain/crawler/preparator/GenericAudioPreparator.java
changed src/net/sf/regain/crawler/preparator/HtmlPreparator.java
changed src/net/sf/regain/crawler/preparator/JavaPreparator.java
changed src/net/sf/regain/crawler/preparator/MP3Preparator.java
changed src/net/sf/regain/crawler/preparator/html
changed src/net/sf/regain/crawler/preparator/html/LinkVisitor.java
changed src/net/sf/regain/crawler/preparator/java
changed src/net/sf/regain/crawler/preparator/java/JavaParser.java
changed src/net/sf/regain/search
copied src/net/sf/regain/crawler/preparator/java/JClass.java -> src/net/sf/regain/crawler/preparator/java/JClassEnum.java
src/net/sf/regain/crawler/document/PreparatorProfilerPair.java Diff Switch to side-by-side view
Loading...
src/net/sf/regain/crawler/preparator/java/Type.java Diff Switch to side-by-side view
Loading...
build.properties.sample Diff Switch to side-by-side view
Loading...
build.xml Diff Switch to side-by-side view
Loading...
src
Directory.
src/net
Directory.
src/net/sf
Directory.
src/net/sf/regain
Directory.
src/net/sf/regain/crawler/document/DocumentFactory.java Diff Switch to side-by-side view
Loading...
src/net/sf/regain/crawler/plugin/CrawlerPlugin.java Diff Switch to side-by-side view
Loading...
src/net/sf/regain/crawler/preparator/GenericAudioPreparator.java Diff Switch to side-by-side view
Loading...
src/net/sf/regain/crawler/preparator/HtmlPreparator.java Diff Switch to side-by-side view
Loading...
src/net/sf/regain/crawler/preparator/JavaPreparator.java Diff Switch to side-by-side view
Loading...
src/net/sf/regain/crawler/preparator/MP3Preparator.java Diff Switch to side-by-side view
Loading...
src/net/sf/regain/crawler/preparator/html/LinkVisitor.java Diff Switch to side-by-side view
Loading...
src/net/sf/regain/crawler/preparator/java/JavaParser.java Diff Switch to side-by-side view
Loading...
src/net/sf/regain/crawler/preparator/java/JClass.java to src/net/sf/regain/crawler/preparator/java/JClassEnum.java
--- a/src/net/sf/regain/crawler/preparator/java/JClass.java
+++ b/src/net/sf/regain/crawler/preparator/java/JClassEnum.java
@@ -30,24 +30,25 @@
 import java.util.ArrayList;
 
 /**
- * Represents a Java class
- * <p>
- * @author  Renuka Sindhgatta, http://www.oreillynet.com/pub/au/2554
+ * Represents a Java class or an Enum <p>
  *
- * Modifications by Thomas Tesche, http://clusterconsult.thtesche.com/
+ * @author Renuka Sindhgatta, http://www.oreillynet.com/pub/au/2554
+ *
+ * @author Thomas Tesche <thomas.tesche@clustersystems.de>
  */
-public class JClass {
+public class JClassEnum {
 
   private String className = null;
-  private boolean isInterface = false;
+  private Type _type = Type.CLASS;
   private ArrayList methodDeclarations = new ArrayList();
   private ArrayList innerClasses = new ArrayList();
   private String superClass = null;
   private ArrayList interfaces = new ArrayList();
+  private ArrayList constants = new ArrayList();
 
   /**
    * Returns the class name.
-   * 
+   *
    * @return the class name
    */
   public String getClassName() {
@@ -56,7 +57,7 @@
 
   /**
    * Sets the class name.
-   * 
+   *
    * @param className the name of the class
    */
   public void setClassName(String className) {
@@ -64,21 +65,8 @@
   }
 
   /**
-   * Returns if the class is an interface.
-   * 
-   * @return true if the class is an interface
-   */
-  public boolean isInterface() {
-    return isInterface;
-  }
-
-  public void setIsInterface(boolean isInterface) {
-    this.isInterface = isInterface;
-  }
-
-  /**
    * Returns the method declarations.
-   * 
+   *
    * @return method declarations
    */
   public ArrayList getMethodDeclarations() {
@@ -87,16 +75,16 @@
 
   /**
    * Sets the method declarations.
-   * 
+   *
    * @param methodDeclarations
    */
   public void setMethodDeclarations(ArrayList methodDeclarations) {
     this.methodDeclarations = methodDeclarations;
   }
 
-  /** 
+  /**
    * Gets the inner classes of a class.
-   * 
+   *
    * @return the inner classes
    */
   public ArrayList getInnerClasses() {
@@ -105,16 +93,16 @@
 
   /**
    * Sets the inner classes.
-   * 
+   *
    * @param innerClasses
    */
   public void setInnerClasses(ArrayList innerClasses) {
     this.innerClasses = innerClasses;
   }
 
-  /** 
+  /**
    * Returns the super class.
-   * 
+   *
    * @return the super class
    */
   public String getSuperClass() {
@@ -123,7 +111,7 @@
 
   /**
    * Sets the super class.
-   * 
+   *
    * @param superClass
    */
   public void setSuperClass(String superClass) {
@@ -132,7 +120,7 @@
 
   /**
    * Return all interfaces
-   * 
+   *
    * @return the interfaces
    */
   public ArrayList getInterfaces() {
@@ -141,10 +129,31 @@
 
   /**
    * Sets the interfaces.
-   * 
+   *
    * @param interfaces
    */
   public void setInterfaces(ArrayList interfaces) {
     this.interfaces = interfaces;
   }
+
+  /**
+   * @return the constants
+   */
+  public ArrayList getConstants() {
+    return constants;
+  }
+
+  /**
+   * @return the _type
+   */
+  public Type getType() {
+    return _type;
+  }
+
+  /**
+   * @param type the _type to set
+   */
+  public void setType(Type type) {
+    this._type = type;
+  }
 }
1 2 3 4 > >> (Page 1 of 4)