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