httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Richardson" <james.richard...@db.com>
Subject RE: [users@httpd] serving millions of files
Date Fri, 04 Feb 2005 14:55:59 GMT

Sorry my editing cut & paste messed up:

    public static String makeId(int i) {

	i += 65536;

	int radix = 16;
	
        boolean negative = (i < 0);
	
	StringBuffer sb = new StringBuffer();

        if (!negative) {
            i = -i;
        }
	
	i = i / radix;

        while (i <= -radix) {
            sb.append ( digits[-(i % radix)] );
	    sb.append ( '/' );
            i = i / radix;
        }
	
        sb.append ( digits[-i] );
	
        return sb.toString();
    }


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message