package jp.gr.java_conf.dyama.rink.common;

public interface IDConverter {
    /** reserved ID for undefined string and null. */
    public static final int UNDEFINED      = 0;

    /** reserved ID for BOS */
    public static final int BOS            = 1;

    /** reserved ID for EOS */
    public static final int EOS            = 2;

    /** reserved ID for EOS */
    public static final int NONE           = 3;

    /** starting ID for normal strings */
    static final int START                 = 10;

    /**
     * convert a string into positive unique ID
     * @param string  target string.
     * @return unique ID. return 0 if string is null.
     */
    public int convert(String string);
}

@@ -67,32 +67,36 @@
 verter %7B%0A    /**
+ the
  reserved ID for
@@ -122,24 +122,24 @@
 nd null. */%0A
-
     public s
@@ -174,32 +174,36 @@
    = 0;%0A%0A    /**
+ the
  reserved ID for
@@ -258,32 +258,36 @@
    = 1;%0A%0A    /**
+ the
  reserved ID for
@@ -350,16 +350,20 @@
 %0A    /**
+ the
  reserve
@@ -434,16 +434,20 @@
 %0A    /**
+ the
  startin
@@ -538,23 +538,24 @@
 %0A     * 
-c
+C
 onvert
+s
  a strin
@@ -602,16 +602,20 @@
 string  
+the 
 target s
@@ -636,23 +636,16 @@
 @return 
-unique 
 ID. retu

revise Java doc