Logo Search packages:      
Sourcecode: jlha-utils version File versions  Download package

String org::jlhafrontend::JLHAFrontEnd::addFileSeparator ( String  a  )  [inline, package]

add a file separator after a string if it is not ended with the file separator

a original string
new string with separator in the end

Definition at line 360 of file JLHAFrontEnd.java.

Referenced by createDirectory(), extract(), and genListArray().

      String ret;
      if (a==null) {
          return a;
      if (a.length()==0) {
          return File.separator;
      if (a.charAt(a.length()-1)!=File.separatorChar) {
          ret = new String(a + File.separator);
      } else {
          ret = new String(a);
      return ret;

Generated by  Doxygen 1.6.0   Back to index