Package java.lang

Examples of java.lang.String.charAt()


        String ldapDN = "";
        for (int i=0; i<RDNs.size(); i++)
            ldapDN =  get(i) + (i!=0?",":"") + ldapDN;
        if (ldapDN.endsWith(","))
        {
            if (ldapDN.charAt(ldapDN.length()-2) != '\\')
            {
                ldapDN = ldapDN.substring(0,ldapDN.length()-1);
            }
        }
        return ldapDN;
View Full Code Here


    // get canonical name of target and remove trailing separator
    //
    @NonNls
    String canonicalTarget = target;

    if ( canonicalTarget.charAt( canonicalTarget.length() - 1 ) == SLASH || canonicalTarget.charAt( canonicalTarget.length() - 1 ) == BACKSLASH ) {
      canonicalTarget = canonicalTarget.substring( 0, canonicalTarget.length() - 1 );
    }

    if ( canonicalTarget.equals( canonicalBase ) ) {
      return ".";
View Full Code Here

    // get canonical name of target and remove trailing separator
    //
    @NonNls
    String canonicalTarget = target;

    if ( canonicalTarget.charAt( canonicalTarget.length() - 1 ) == SLASH || canonicalTarget.charAt( canonicalTarget.length() - 1 ) == BACKSLASH ) {
      canonicalTarget = canonicalTarget.substring( 0, canonicalTarget.length() - 1 );
    }

    if ( canonicalTarget.equals( canonicalBase ) ) {
      return ".";
View Full Code Here

                changed = true;
                i = elem.indexOf (LTB);
            }
            int lsIncr = lineSeparator.length () - 1;
            for (i=0; i<elem.length (); i++) {
                if (elem.charAt (i) == NL) {
                    elem = elem.substring (0, i) +
                        lineSeparator + elem.substring (i+1);
                    i += lsIncr;
                    changed = true;
                }
View Full Code Here

        }

        // START S1AS 6178005
        String stubPath = wmInfo.getStubPath();
        if (stubPath != null && stubPath.length() > 0) {
            if (stubPath.charAt(0) != '/') {
                stubPath = "/" + stubPath;
            }
            loader.addRepository("file:" + stubPath + File.separator);
        }
        // END S1AS 6178005
View Full Code Here

        try {
            //      IDavContext dctx = createDavContext(request, response);
            // log.info("DAV Request: " + methodName);

            char first = Character.toUpperCase(methodName.charAt(0));
            String impl = "com.nirima.jenkins.webdav.impl.methods." + first + methodName.substring(1).toLowerCase();

            try {
                Class c = Class.forName(impl);
                IMethod method = (IMethod) c.newInstance();
View Full Code Here

    int ch = read1(r);
    if(ch == -1)
      throw Util.runtimeException("EOF while reading character");
    String token = readToken(r, (char) ch);
    if(token.length() == 1)
      return Character.valueOf(token.charAt(0));
    else if(token.equals("newline"))
      return '\n';
    else if(token.equals("space"))
      return ' ';
    else if(token.equals("tab"))
View Full Code Here

        }

        // START S1AS 6178005
        String stubPath = wmInfo.getStubPath();
        if (stubPath != null && stubPath.length() > 0) {
            if (stubPath.charAt(0) != '/') {
                stubPath = "/" + stubPath;
            }
            loader.addRepository("file:" + stubPath + File.separator);
        }
        // END S1AS 6178005
View Full Code Here

    int ch = read1(r);
    if(ch == -1)
      throw Util.runtimeException("EOF while reading character");
    String token = readToken(r, (char) ch);
    if(token.length() == 1)
      return Character.valueOf(token.charAt(0));
    else if(token.equals("newline"))
      return '\n';
    else if(token.equals("space"))
      return ' ';
    else if(token.equals("tab"))
View Full Code Here

  public static String newUUID() {
    String uuid = java.util.UUID.randomUUID().toString();
   
      StringBuffer goodUuid = new StringBuffer();
      for(int i = 0; i < uuid.length(); i ++) {
          char c = uuid.charAt(i);
          if( c != '-' ) {
            goodUuid.append(c);
          }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.