diff --git a/source/org/thdl/tib/scanner/BinaryFileGenerator.java b/source/org/thdl/tib/scanner/BinaryFileGenerator.java
index c725cd0..0833370 100644
--- a/source/org/thdl/tib/scanner/BinaryFileGenerator.java
+++ b/source/org/thdl/tib/scanner/BinaryFileGenerator.java
@@ -18,6 +18,10 @@ Contributor(s): ______________________________________.
package org.thdl.tib.scanner;
import java.io.*;
+import org.thdl.util.SimplifiedLinkedList;
+import org.thdl.util.SimplifiedListIterator;
+import org.thdl.util.Link;
+
/** Converts Tibetan dictionaries stored in text files
into a binary file tree structure format, to be used
@@ -144,7 +148,7 @@ myglossary_uma.txt in the transliteration format explained above.
@see FileSyllableListTree
@see CachedSyllableListTree
*/
-public class BinaryFileGenerator extends LinkedList
+public class BinaryFileGenerator extends SimplifiedLinkedList
{
private long posHijos;
private String sil, def[];
@@ -628,7 +632,8 @@ public class BinaryFileGenerator extends LinkedList
private void print() throws Exception
{
long pos;
- ListIterator i = listIterator();
+ SimplifiedListIterator i = listIterator();
+
BinaryFileGenerator silHijos;
boolean hasNext;
diff --git a/source/org/thdl/tib/scanner/CachedSyllableListTree.java b/source/org/thdl/tib/scanner/CachedSyllableListTree.java
index 406b100..41ffecd 100644
--- a/source/org/thdl/tib/scanner/CachedSyllableListTree.java
+++ b/source/org/thdl/tib/scanner/CachedSyllableListTree.java
@@ -18,6 +18,7 @@ Contributor(s): ______________________________________.
package org.thdl.tib.scanner;
import java.io.*;
+import org.thdl.util.*;
/** Provides recommended implementation of the {@link SyllableListTree}
(currently most efficient memory-speed combination) loading
@@ -43,7 +44,7 @@ public class CachedSyllableListTree implements SyllableListTree
int i;
FileSyllableListTree.openFiles(archivo);
long posLista = FileSyllableListTree.wordRaf.length() - 4;
- LinkedList syllables = new LinkedList();
+ SimplifiedLinkedList syllables = new SimplifiedLinkedList();
FileSyllableListTree.wordRaf.seek(posLista);
posLista = (long) FileSyllableListTree.wordRaf.readInt();
@@ -67,7 +68,7 @@ public class CachedSyllableListTree implements SyllableListTree
int n = syllables.size();
this.syllables = new SyllableListTree[n];
- ListIterator li = syllables.listIterator();
+ SimplifiedListIterator li = syllables.listIterator();
while (li.hasNext())
{
n--;
diff --git a/source/org/thdl/tib/scanner/ConsoleScannerFilter.java b/source/org/thdl/tib/scanner/ConsoleScannerFilter.java
index c8357b8..7519316 100644
--- a/source/org/thdl/tib/scanner/ConsoleScannerFilter.java
+++ b/source/org/thdl/tib/scanner/ConsoleScannerFilter.java
@@ -17,9 +17,10 @@ Contributor(s): ______________________________________.
*/
package org.thdl.tib.scanner;
+import org.thdl.util.*;
+
import java.io.*;
import java.net.*;
-import java.util.*;
/** Inputs a Tibetan text and displays the words with their
definitions through the console over a shell. Use when no
@@ -94,8 +95,8 @@ public class ConsoleScannerFilter
public void printWords()
{
- LinkedList words = scanner.getTokenLinkedList();
- ListIterator i = words.listIterator();
+ SimplifiedLinkedList words = scanner.getTokenLinkedList();
+ SimplifiedListIterator i = words.listIterator();
Token token;
while (i.hasNext())
{
diff --git a/source/org/thdl/tib/scanner/LocalTibetanScanner.java b/source/org/thdl/tib/scanner/LocalTibetanScanner.java
index 1f3ed03..16d65ef 100644
--- a/source/org/thdl/tib/scanner/LocalTibetanScanner.java
+++ b/source/org/thdl/tib/scanner/LocalTibetanScanner.java
@@ -17,8 +17,10 @@ Contributor(s): ______________________________________.
*/
package org.thdl.tib.scanner;
-import java.util.*;
+import org.thdl.util.*;
import java.io.*;
+import java.util.Vector;
+import java.util.Enumeration;
/** Loads dictionary stored in tree format and searches for words recursively.
How the the dictionary is loaded depends on which implementation of
@@ -33,7 +35,7 @@ public class LocalTibetanScanner implements TibetanScanner
private SyllableListTree raiz, silActual, lastCompSil, silAnterior;
private String wordActual, lastCompWord;
private Vector floatingSil;
- private LinkedList wordList;
+ private SimplifiedLinkedList wordList;
private static String endOfParagraphMarks = "/;|!:[]^@#$%=<>(){}";
private static String endOfSyllableMarks = " _\t";
@@ -44,7 +46,7 @@ public class LocalTibetanScanner implements TibetanScanner
public void clearTokens()
{
- wordList = new LinkedList();
+ wordList = new SimplifiedLinkedList();
}
public DictionarySource getDictionarySource()
@@ -60,7 +62,7 @@ public class LocalTibetanScanner implements TibetanScanner
// raiz = new FileSyllableListTree(archivo);
raiz = new CachedSyllableListTree(archivo);
floatingSil = new Vector();
- wordList = new LinkedList();
+ wordList = new SimplifiedLinkedList();
resetAll();
}
@@ -375,7 +377,7 @@ outAHere:
}
}
- public LinkedList getTokenLinkedList()
+ public SimplifiedLinkedList getTokenLinkedList()
{
return wordList;
}
@@ -384,7 +386,7 @@ outAHere:
{
int i=wordList.size();
Token token[] = new Token[i];
- ListIterator li = wordList.listIterator();
+ SimplifiedListIterator li = wordList.listIterator();
while(li.hasNext())
token[--i] = (Token)li.next();
return token;
@@ -399,7 +401,7 @@ outAHere:
try
{
BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(archivo + ".dic")));
- LinkedList ll1 = new LinkedList(), ll2 = new LinkedList();
+ SimplifiedLinkedList ll1 = new SimplifiedLinkedList(), ll2 = new SimplifiedLinkedList();
String s;
while ((s=br.readLine())!=null)
{
diff --git a/source/org/thdl/tib/scanner/MemorySyllableListTree.java b/source/org/thdl/tib/scanner/MemorySyllableListTree.java
index 9330c5f..3013c0a 100644
--- a/source/org/thdl/tib/scanner/MemorySyllableListTree.java
+++ b/source/org/thdl/tib/scanner/MemorySyllableListTree.java
@@ -17,6 +17,8 @@ Contributor(s): ______________________________________.
*/
package org.thdl.tib.scanner;
+
+import org.thdl.util.*;
import java.util.*;
import java.io.*;
@@ -34,7 +36,7 @@ import java.io.*;
@see BinaryFileGenerator
*/
-public class MemorySyllableListTree extends LinkedList implements SyllableListTree
+public class MemorySyllableListTree extends SimplifiedLinkedList implements SyllableListTree
{
protected String sil, def;
@@ -171,7 +173,7 @@ public class MemorySyllableListTree extends LinkedList implements SyllableListTr
}
MemorySyllableListTree silHijos;
- ListIterator i = listIterator();
+ SimplifiedListIterator i = listIterator();
while (i.hasNext())
{
silHijos = (MemorySyllableListTree) i.next();
@@ -182,7 +184,7 @@ public class MemorySyllableListTree extends LinkedList implements SyllableListTr
public SyllableListTree lookUp(String silStr)
{
MemorySyllableListTree sil;
- ListIterator i = listIterator();
+ SimplifiedListIterator i = listIterator();
while (i.hasNext())
{
sil = (MemorySyllableListTree) i.next();
diff --git a/source/org/thdl/tib/scanner/OnLineScannerFilter.java b/source/org/thdl/tib/scanner/OnLineScannerFilter.java
index bcde309..9be9fe5 100644
--- a/source/org/thdl/tib/scanner/OnLineScannerFilter.java
+++ b/source/org/thdl/tib/scanner/OnLineScannerFilter.java
@@ -17,14 +17,15 @@ Contributor(s): ______________________________________.
*/
package org.thdl.tib.scanner;
+
+import org.thdl.util.*;
+import org.thdl.tib.text.TibetanHTML;
import java.util.*;
import java.io.*;
import java.text.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
-import org.thdl.tib.text.TibetanHTML;
-import org.thdl.util.ThdlOptions;
/** Interfase to provide access to an on-line dictionary through a form in html;
Inputs Tibetan text (Roman script only) and displays the
@@ -267,7 +268,7 @@ public class OnLineScannerFilter extends HttpServlet {
public void printAllDefs(PrintWriter pw, Object words[], boolean tibetan)
{
- LinkedList temp = new LinkedList();
+ SimplifiedLinkedList temp = new SimplifiedLinkedList();
int i;
Word word;
Definitions defs;
@@ -283,7 +284,7 @@ public class OnLineScannerFilter extends HttpServlet {
}
}
- ListIterator li = temp.listIterator();
+ SimplifiedListIterator li = temp.listIterator();
String tag;
pw.println("