Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.flexstor.common.io.xfile.parsers
Class XStringValidator  view XStringValidator download XStringValidator.java

java.lang.Object
  extended bycom.flexstor.common.util.StringUtil
      extended bycom.flexstor.common.io.xfile.parsers.XStringValidator

public class XStringValidator
extends com.flexstor.common.util.StringUtil


Constructor Summary
XStringValidator()
           
 
Method Summary
static java.lang.String decodeURLString(java.lang.String sInput)
          Decodes a URL string, by replacing % with the actual character.
static java.lang.String encodeURLString(java.lang.String sInput)
          Encodes a URL string, by replacing specific characters by it % representation.
 
Methods inherited from class com.flexstor.common.util.StringUtil
copyArray, getFileNameFromURL, hasInvalidChars, replaceChar, replacePercent, replaceString, toProper
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XStringValidator

public XStringValidator()
Method Detail

decodeURLString

public static java.lang.String decodeURLString(java.lang.String sInput)
Decodes a URL string, by replacing % with the actual character. Please note that the slash, backslash, and colon are not being replaced by this function, as this would screw up the URL. Also, the blank space is not substituted because this could screw up the XFile file path.


encodeURLString

public static java.lang.String encodeURLString(java.lang.String sInput)
Encodes a URL string, by replacing specific characters by it % representation. Please note that the slash, backslash, and colon are not being replaced by this function, as this would screw up the URL. Also, the blank space is not substituted because this could screw up the XFile file path.