org.jboss.osgi.vfs
Class VFSUtils

java.lang.Object
  extended by org.jboss.osgi.vfs.VFSUtils

public final class VFSUtils
extends Object

Some VFS utilities that are used by the OSGi layer.

Since:
02-Mar-2010
Author:
thomas.diesler@jboss.com

Method Summary
static void copyStream(InputStream is, OutputStream os)
           
static Manifest getManifest(VirtualFile archive)
           
static String getPathFromClassName(String className)
           
static String getPathFromPackageName(String packageName)
           
static void safeClose(Closeable c)
          Safely close some resource without throwing an exception.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getManifest

public static Manifest getManifest(VirtualFile archive)
                            throws IOException
Throws:
IOException

copyStream

public static void copyStream(InputStream is,
                              OutputStream os)
                       throws IOException
Throws:
IOException

safeClose

public static void safeClose(Closeable c)
Safely close some resource without throwing an exception. Any exception will be logged at TRACE level.


getPathFromClassName

public static String getPathFromClassName(String className)

getPathFromPackageName

public static String getPathFromPackageName(String packageName)


Copyright © 2012. All Rights Reserved.