org.apache.felix.gogo.command
Class Util
java.lang.Object
org.apache.felix.gogo.command.Util
public class Util
- extends Object
Constructor Summary |
Util()
|
Method Summary |
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(Bundle bundle)
|
static
|
getService(BundleContext bc,
clazz,
refs)
|
static String |
getUnderlineString(int len)
|
static String |
getValueString(Object obj)
|
static InputStream |
openURL(URL url)
|
static InputStream |
openURL(URLConnection conn)
|
static void |
setProxyAuth(URLConnection conn)
|
static void |
ungetServices(BundleContext bc,
refs)
|
static void |
unjar(JarInputStream jis,
File dir)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Util
public Util()
getBundleName
public static String getBundleName(Bundle bundle)
getUnderlineString
public static String getUnderlineString(int len)
getValueString
public static String getValueString(Object obj)
getService
public static <T> T getService(BundleContext bc,
clazz,
refs)
ungetServices
public static void ungetServices(BundleContext bc,
refs)
downloadSource
public static void downloadSource(PrintStream out,
PrintStream err,
URL srcURL,
File localDir,
boolean extract)
unjar
public static void unjar(JarInputStream jis,
File dir)
throws IOException
- Throws:
IOException
copy
public static void copy(InputStream is,
File dir,
String destName,
String destDir,
byte[] buffer)
throws IOException
- Throws:
IOException
setProxyAuth
public static void setProxyAuth(URLConnection conn)
throws IOException
- Throws:
IOException
openURL
public static InputStream openURL(URL url)
throws IOException
- Throws:
IOException
openURL
public static InputStream openURL(URLConnection conn)
throws IOException
- Throws:
IOException
Copyright © 2011 Apache Software Foundation. All Rights Reserved.