From: Aleš Křenek Date: Thu, 10 Apr 2008 09:04:57 +0000 (+0000) Subject: moved to jobid X-Git-Tag: glite-yaim-lb_R_4_0_2_1~107 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=39db0d600ae28ccbafe30ae697b935703198ef08;p=jra1mw.git moved to jobid --- diff --git a/org.glite.lb.client-java/src/org/glite/lb/client_java/CheckedString.java b/org.glite.lb.client-java/src/org/glite/lb/client_java/CheckedString.java deleted file mode 100755 index 8abf3d3..0000000 --- a/org.glite.lb.client-java/src/org/glite/lb/client_java/CheckedString.java +++ /dev/null @@ -1,59 +0,0 @@ -package org.glite.lb.client_java; - -/** - * Class which escapes \ and new line signs in string which is set as parameter - * in constructor - * - * @author Pavel Piskac (173297@mail.muni.cz) - * @version 15. 3. 2008 - */ -public class CheckedString { - - String checkedString; - - /** - * Creates new instance of CheckedString. - * - * @param checkedString string which will be converted - * @throws java.lang.IllegalArgumentException if checkedString is null - */ - public CheckedString(String checkedString) { - if (checkedString == null) { - throw new IllegalArgumentException("checkedString is null"); - } - - checkedString = checkedString.replaceAll("[\\\"]", "\\\\\""); - checkedString = checkedString.replaceAll("[\n]", "\\\\\\\\n"); - this.checkedString = checkedString; - } - - /** - * Gets converted string. - * - * @return converted string - */ - public String getCheckedString() { - return checkedString; - } - - /** - * Sets string which will be converted. - * - * @param checkedString string which will be converted. - */ - public void setCheckedString(String checkedString) { - checkedString = checkedString.replaceAll("[\\\"]", "\\\\\""); - checkedString = checkedString.replaceAll("[\n]", "\\\\\\\\n"); - this.checkedString = checkedString; - } - - /** - * Returns converted string. - * - * @return converted string - */ - public String toString() { - return checkedString; - } - -}