|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.glite.slcs.util.Utils
public class Utils
Utils some utility functions
Method Summary | |
---|---|
static java.lang.String |
convertShibbolethUTF8ToUnicode(java.lang.String shibUTF8)
Shibboleth sends values UTF8 encoded. |
static java.lang.String |
convertUnicodeToISOLatin1(java.lang.String unicode)
Converts a Java unicode string in a ISO-8859-1 (ISO Latin1) string. |
static java.lang.String |
filterISOLatin1AccentuedString(java.lang.String latin1)
Converts ISO-8859-1 accentued chars into their unaccentued equivalent 192 => 'A', 193 => 'A', 194 => 'A', 195 => 'A', 196 => 'Ae', 197 => 'A', 198 => 'AE', 199 => 'C', 200 => 'E', 201 => 'E', 202 => 'E', 203 => 'E', 204 => 'I', 205 => 'I', 206 => 'I', 207 => 'I', 209 => 'N', 210 => 'O', 211 => 'O', 212 => 'O', 213 => 'O', 214 => 'Oe', 216 => 'O', 217 => 'U', 218 => 'U', 219 => 'U', 220 => 'Ue', 221 => 'Y', 223 => 'ss', 224 => 'a', 225 => 'a', 226 => 'a', 227 => 'a', 228 => 'ae', 229 => 'a', 230 => 'ae', 231 => 'c', 232 => 'e', 233 => 'e', 234 => 'e', 235 => 'e', 236 => 'i', 237 => 'i', 238 => 'i', 239 => 'i', 241 => 'n', 242 => 'o', 243 => 'o', 244 => 'o', 245 => 'o', 246 => 'oe', 248 => 'o', 249 => 'u', 250 => 'u', 251 => 'u', 252 => 'ue', 253 => 'y', 255 => 'y' |
static java.lang.String |
filterUnicodeAccentuedString(java.lang.String unicode)
Filter an unicode Java string accentuated characters and replace them with their non-accentuated equivalants. |
static boolean |
setFilePermissions(java.io.File file,
int mode)
Sets permissions on a given file. |
static java.lang.String |
toHexString(byte[] b)
Returns the hexadecimal representation of the byte array (uppercase). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String filterUnicodeAccentuedString(java.lang.String unicode)
unicode
- The string to filter.
null
if the filtering failed.public static java.lang.String filterISOLatin1AccentuedString(java.lang.String latin1)
public static java.lang.String convertShibbolethUTF8ToUnicode(java.lang.String shibUTF8)
shibUTF8
- The strange encoded shibboleth UTF8 string.
null
if the convertion
failed.public static java.lang.String convertUnicodeToISOLatin1(java.lang.String unicode)
unicode
- The string to convert
null
if the convertion
failed.public static java.lang.String toHexString(byte[] b)
b
-
public static boolean setFilePermissions(java.io.File file, int mode)
file
- the file to set the permissions of.mode
- the Unix style permissions.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |