Util.java revision 0
* The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * See LICENSE.txt included in this distribution for the specific * language governing permissions and limitations under the License. * When distributing Covered Code, include this CDDL HEADER in each * If applicable, add the following below this CDDL HEADER, with the * fields enclosed by brackets "[]" replaced with your own identifying * information: Portions Copyright [yyyy] [name of copyright owner] * Copyright 2005 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. * File for useful functions for(
int i=
0; i < q.
length() ; i++) {
}
else if ( l <
1048576 ) {
/* public static String simpleLine(int num) { //return("\n<a name=\""+num + "\">" + num + "\t</a>"); return("\n<a class=\"l\" name=\""+num + "\">" + (num < 10 ? " " : (num < 100 ? " " : (num < 1000? " " : ""))) + num + " </a>"); /* out.write("\n<a name=\""); * Append path and date into a string in such a way that lexicographic * sorting gives the same results as a walk of the file hierarchy. Thus * null (\u0000) is used both to separate directory components and to * separate the path from the date. private static char[]
hexdigits = {
'0',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'9',
'a',
'b',
'c',
'd',
'e',
'f'};
for(
int i=
0; i < q.
length() ; i++) {
if ((c >=
'a' && c <=
'z')
||(c >=
'0' && c <=
'9')) {
for(
int i=
0; i < q.
length() ; i++) {