Util.java revision 58
1787N/A * The contents of this file are subject to the terms of the 1787N/A * Common Development and Distribution License (the "License"). 1787N/A * You may not use this file except in compliance with the License. 1787N/A * language governing permissions and limitations under the License. 1787N/A * When distributing Covered Code, include this CDDL HEADER in each 1787N/A * If applicable, add the following below this CDDL HEADER, with the 1787N/A * fields enclosed by brackets "[]" replaced with your own identifying 1787N/A * information: Portions Copyright [yyyy] [name of copyright owner] 1787N/A * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 1787N/A * Use is subject to license terms. 1787N/A * File for useful functions }
else if ( l <
1048576 ) {
* 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++) {