|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.soa.esb.listeners.deployers.mc.util.VfsUtil
public final class VfsUtil
Util methods for interacting with JBoss VFS
Method Summary | |
---|---|
static org.jboss.virtual.VirtualFile |
addFile(java.net.URL rootUrl,
java.lang.String filePath,
byte[] fileContent)
Will add the fileContent to the in-memory rootUrl a the location specified by filePath. |
static void |
addFiles(java.util.List<org.jboss.virtual.VirtualFile> files,
java.net.URL destUrl,
java.lang.String subPath)
|
static void |
addFiles(java.util.List<org.jboss.virtual.VirtualFile> files,
java.net.URL destUrl,
java.lang.String subPath,
java.lang.String pathPrefix)
|
static void |
addFiles(java.util.Map<org.jboss.virtual.VirtualFile,java.lang.String> filesToNamesMap,
java.net.URL destUrl,
java.lang.String pathPrefix)
|
static org.jboss.virtual.VirtualFile |
createInMemoryFs(java.net.URL rootUrl)
Creates a new in-memory virtual file system or returns an already existing one.. |
static java.net.URL |
createInMemUrl(java.lang.String root)
A simple method that creates a new url with a protocol of 'vfsmemory'. |
static java.net.URL |
createInMemUrl(java.lang.String root,
java.lang.String path)
|
static java.net.URL |
createInMemUrl(java.net.URL root,
java.lang.String path)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static org.jboss.virtual.VirtualFile createInMemoryFs(java.net.URL rootUrl) throws java.io.IOException
url
- The url which of which this host property will be the root of the fs.
VirtualFile
that represents the root of the fs.
java.io.IOException
public static org.jboss.virtual.VirtualFile addFile(java.net.URL rootUrl, java.lang.String filePath, byte[] fileContent) throws java.net.MalformedURLException
rootUrl
- The root of the in-memory fs.filePath
- The path relative to the rootUrl.fileContent
- The contents of the file to add.
VirtualFile
A reference to the newly created file in the in-memory file system.
java.net.MalformedURLException
public static java.net.URL createInMemUrl(java.lang.String root) throws java.net.MalformedURLException
root
- Will be the name (hostname) of the root in-memory file system.
URL
An url that represents a root of an in-memory file system.
java.net.MalformedURLException
public static java.net.URL createInMemUrl(java.lang.String root, java.lang.String path) throws java.net.MalformedURLException
java.net.MalformedURLException
public static java.net.URL createInMemUrl(java.net.URL root, java.lang.String path) throws java.net.MalformedURLException
java.net.MalformedURLException
public static void addFiles(java.util.List<org.jboss.virtual.VirtualFile> files, java.net.URL destUrl, java.lang.String subPath) throws java.io.IOException, java.net.URISyntaxException
java.io.IOException
java.net.URISyntaxException
public static void addFiles(java.util.List<org.jboss.virtual.VirtualFile> files, java.net.URL destUrl, java.lang.String subPath, java.lang.String pathPrefix) throws java.io.IOException, java.net.URISyntaxException
java.io.IOException
java.net.URISyntaxException
public static void addFiles(java.util.Map<org.jboss.virtual.VirtualFile,java.lang.String> filesToNamesMap, java.net.URL destUrl, java.lang.String pathPrefix) throws java.io.IOException, java.net.URISyntaxException
java.io.IOException
java.net.URISyntaxException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |