public class Util extends Object
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
static boolean |
compareSubstring(List<String> pieces,
String s) |
static void |
copy(InputStream is,
File dir,
String destName,
String destDir,
byte[] buffer) |
static String |
getBundleName(org.osgi.framework.Bundle bundle) |
static <T> T |
getService(org.osgi.framework.BundleContext bc,
Class<T> clazz,
List<org.osgi.framework.ServiceReference<?>> refs) |
static String |
getUnderlineString(int len) |
static String |
getValueString(Object obj) |
static List<String> |
parseSubstring(String value) |
static String |
resolveUri(org.apache.felix.service.command.CommandSession session,
String relativeUri)
Intepret a string as a URI relative to the current working directory.
|
static void |
ungetServices(org.osgi.framework.BundleContext bc,
List<org.osgi.framework.ServiceReference<?>> refs) |
static void |
unjar(JarInputStream jis,
File dir) |
static String |
unparseSubstring(List<String> pieces) |
public static String getBundleName(org.osgi.framework.Bundle bundle)
public static String getUnderlineString(int len)
public static <T> T getService(org.osgi.framework.BundleContext bc, Class<T> clazz, List<org.osgi.framework.ServiceReference<?>> refs)
public static void ungetServices(org.osgi.framework.BundleContext bc, List<org.osgi.framework.ServiceReference<?>> refs)
public static void unjar(JarInputStream jis, File dir) throws IOException
IOException
public static void copy(InputStream is, File dir, String destName, String destDir, byte[] buffer) throws IOException
IOException
public static String resolveUri(org.apache.felix.service.command.CommandSession session, String relativeUri) throws IOException
session
- the session (where the CWD is stored)relativeUri
- the input URIIOException
Copyright © 2006–2024 The Apache Software Foundation. All rights reserved.