Package org.apache.felix.gogo.command
Class Util
java.lang.Object
org.apache.felix.gogo.command.Util
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancompareSubstring(List<String> pieces, String s) static voidcopy(InputStream is, File dir, String destName, String destDir, byte[] buffer) static voiddownloadSource(PrintStream out, PrintStream err, URL srcURL, File localDir, boolean extract) static StringgetBundleName(org.osgi.framework.Bundle bundle) static <T> TgetService(org.osgi.framework.BundleContext bc, Class<T> clazz, List<org.osgi.framework.ServiceReference> refs) static StringgetUnderlineString(int len) static StringgetValueString(Object obj) static InputStreamstatic InputStreamopenURL(URLConnection conn) parseSubstring(String value) static voidsetProxyAuth(URLConnection conn) static voidungetServices(org.osgi.framework.BundleContext bc, List<org.osgi.framework.ServiceReference> refs) static voidunjar(JarInputStream jis, File dir) static StringunparseSubstring(List<String> pieces)
-
Constructor Details
-
Util
public Util()
-
-
Method Details
-
getBundleName
-
getUnderlineString
-
getValueString
-
getService
-
ungetServices
public static void ungetServices(org.osgi.framework.BundleContext bc, List<org.osgi.framework.ServiceReference> refs) -
downloadSource
public static void downloadSource(PrintStream out, PrintStream err, URL srcURL, File localDir, boolean extract) -
unjar
- Throws:
IOException
-
copy
public static void copy(InputStream is, File dir, String destName, String destDir, byte[] buffer) throws IOException - Throws:
IOException
-
setProxyAuth
- Throws:
IOException
-
openURL
- Throws:
IOException
-
openURL
- Throws:
IOException
-
parseSubstring
-
unparseSubstring
-
compareSubstring
-