org.apache.felix.bundlerepository
Class Util
java.lang.Object
org.apache.felix.bundlerepository.Util
public class Util
- extends Object
Constructor Summary |
Util()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Util
public Util()
getClassName
public static String getClassName(String className)
getBundleName
public static String getBundleName(Bundle bundle)
parseDelimitedString
public static String[] parseDelimitedString(String value,
String delim)
- Parses delimited string and returns an array containing the tokens. This
parser obeys quotes, so the delimiter character will be ignored if it is
inside of a quote. This method assumes that the quote character is not
included in the set of delimiter characters.
- Parameters:
value
- the delimited string to parse.delim
- the characters delimiting the tokens.
- Returns:
- an array of string tokens or null if there were no tokens.
compareVersion
public static int compareVersion(int[] v1,
int[] v2)
base64Encode
public static String base64Encode(String s)
throws IOException
- Throws:
IOException
encode
public static String encode(byte[] in,
int len)
throws IOException
- Encode a raw byte array to a Base64 String.
- Parameters:
in
- Byte array to encode.len
- Length of Base64 lines. 0 means no line breaks.
- Throws:
IOException
encode
public static void encode(InputStream in,
OutputStream out,
int len)
throws IOException
- Throws:
IOException
Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.