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 boolean
compareSubstring
(List<String> pieces, String s) static void
copy
(InputStream is, File dir, String destName, String destDir, byte[] buffer) static void
downloadSource
(PrintStream out, PrintStream err, URL srcURL, File localDir, boolean extract) 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 InputStream
static InputStream
openURL
(URLConnection conn) parseSubstring
(String value) static void
setProxyAuth
(URLConnection conn) 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)
-
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
-