From 6ae8b6a26f045e54727c7d12baa98f4c719b9225 Mon Sep 17 00:00:00 2001 From: travismccauley Date: Thu, 1 Jul 2004 12:41:01 +0000 Subject: [PATCH] *** empty log message *** --- src/java/org/thdl/lex/DictionaryImporter.java | 302 ------------------ 1 file changed, 302 deletions(-) delete mode 100644 src/java/org/thdl/lex/DictionaryImporter.java diff --git a/src/java/org/thdl/lex/DictionaryImporter.java b/src/java/org/thdl/lex/DictionaryImporter.java deleted file mode 100644 index b4af797..0000000 --- a/src/java/org/thdl/lex/DictionaryImporter.java +++ /dev/null @@ -1,302 +0,0 @@ -package org.thdl.lex; -import java.net.*; -import java.io.*; -import java.util.*; -import org.thdl.lex.*; -import org.thdl.tib.scanner.Manipulate; - -//import org.apache.torque.Torque; -//import org.apache.torque.util.Criteria; -import org.thdl.lex.component.*; - -public class DictionaryImporter -{ - private PrintWriter out; - private BufferedReader in; - private String delim; - private int delimiterType; - - public final static int delimiterGeneric=0; - public final static int delimiterAcip=1; - public final static int delimiterDash=2; - -//helpers - public void doImport() throws Exception - { - String entrada, s1, s2, alternateWords[]; - int marker, marker2, len, currentLine=1; - long start = System.currentTimeMillis(); - - while ((entrada = in.readLine())!=null) - { - entrada = entrada.trim(); - if (!entrada.equals("")) - { - switch(delimiterType) - { - /* this is needed to make sure that the dash used in reverse vowels with extended - wylie is not confused with the dash that separates definiendum and definition. */ - case delimiterDash: - marker=entrada.indexOf('-'); - len = entrada.length(); - while (marker>=0 && marker0) - { - alternateWords = s1.split(";"); - for (marker2=0; marker2= 0) - in = new BufferedReader(new InputStreamReader(new BufferedInputStream((new URL(args[currentArg])).openStream()))); - else - in = new BufferedReader(new InputStreamReader(new FileInputStream(args[currentArg]))); - } - - new DictionaryImporter(in, out).doImport(); - } - catch ( Exception e ) - { - e.printStackTrace(); - } - } -}