From 5c5f252d5c7a2bdfefd4fbe54a7ae64537a64874 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Thu, 12 Jun 2025 21:19:36 +0300 Subject: Restructure project to use Maven exclusively and bump to v1.0.1-SNAPSHOT MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove legacy Ant build system (build.xml, sources/ directory) - Migrate to Maven-only build with standard directory structure - Add comprehensive Maven documentation and JAVA_HOME setup for Fedora - Update pom.xml with exec plugin and bump version to 1.0.1-SNAPSHOT - Add CLAUDE.md for development guidance - Update README.md with detailed build/run/clean instructions 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- sources/utils/VSTools.java | 92 ---------------------------------------------- 1 file changed, 92 deletions(-) delete mode 100644 sources/utils/VSTools.java (limited to 'sources/utils/VSTools.java') diff --git a/sources/utils/VSTools.java b/sources/utils/VSTools.java deleted file mode 100644 index ceb5760..0000000 --- a/sources/utils/VSTools.java +++ /dev/null @@ -1,92 +0,0 @@ -package utils; - -import java.util.Vector; - -/** - * The class VSTools. This class contains only static methods. Those methods - * are for general usage and don't fit into other classes. - * - * @author Paul C. Buetow - */ -public final class VSTools { - /** - * Gets the time string. - * - * @param time the time - * - * @return the time string - */ - public static String getTimeString(long time) { - String ret = ""+time; - - while (ret.length() < 6) - ret = "0" + ret; - - return ret + "ms"; - } - - /** - * Gets the string time. - * - * @param string the string - * - * @return the string time - */ - public static long getStringTime(String string) { - try { - /* Ignore the "ms" postfix */ - Long longValue = Long.valueOf( - string.substring(0, string.length()-2)); - return longValue.longValue(); - } catch (NumberFormatException e) { - } - - return 0; - } - - /** - * Gets the integer vector represented by a comma separated string. - * - * @param string the string - * - * @return the parsed vector - */ - public static Vector parseIntegerVector(String string) - throws exceptions.VSParseIntegerVectorException { - Vector vec = new Vector(); - - int index = string.indexOf('['); - if (index == -1) - throw new exceptions.VSParseIntegerVectorException(); - - string = string.substring(index+1); - - index = string.indexOf(']'); - if (index == -1) - throw new exceptions.VSParseIntegerVectorException(); - - string = string.substring(0, index); - - try { - while ( (index = string.indexOf(',')) != -1 ) { - String substring = string.substring(0, index); - - /* Remove leading whitespaces */ - while (substring.charAt(0) == ' ') - substring = substring.substring(1); - - vec.add(Integer.parseInt(substring)); - string = string.substring(index+1); - } - - /* Remove leading whitespaces */ - while (string.charAt(0) == ' ') - string = string.substring(1); - vec.add(Integer.parseInt(string)); - - } catch (StringIndexOutOfBoundsException e) { - } catch (NumberFormatException e) { - } - return vec; - } -} -- cgit v1.2.3