nl.knowledgeplaza.util
Class VfsUtils

java.lang.Object
  extended by nl.knowledgeplaza.util.VfsUtils

public class VfsUtils
extends Object

Apache Commons VFS tools


Constructor Summary
VfsUtils()
           
 
Method Summary
static long copy(File file, org.apache.commons.vfs.FileObject fileObject)
           
static long copy(File file, org.apache.commons.vfs.FileObject fileObject, ProgressListener progressListener)
          copy a regular file to a VFS file
static long copy(org.apache.commons.vfs.FileObject fileObject, File file)
           
static long copy(org.apache.commons.vfs.FileObject fileObject, File file, ProgressListener progressListener)
          copy a VFS file to a regular file
static String escapeURLUsernameAndPassword(String s)
          Certain characters must be escaped in username or password
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VfsUtils

public VfsUtils()
Method Detail

copy

public static long copy(org.apache.commons.vfs.FileObject fileObject,
                        File file,
                        ProgressListener progressListener)
                 throws IOException
copy a VFS file to a regular file

Parameters:
fileObject -
file -
progressListener -
Throws:
IOException

copy

public static long copy(org.apache.commons.vfs.FileObject fileObject,
                        File file)
                 throws IOException
Throws:
IOException

copy

public static long copy(File file,
                        org.apache.commons.vfs.FileObject fileObject,
                        ProgressListener progressListener)
                 throws IOException
copy a regular file to a VFS file

Parameters:
file -
fileObject -
progressListener -
Throws:
IOException

copy

public static long copy(File file,
                        org.apache.commons.vfs.FileObject fileObject)
                 throws IOException
Throws:
IOException

escapeURLUsernameAndPassword

public static String escapeURLUsernameAndPassword(String s)
Certain characters must be escaped in username or password

Parameters:
s -
Returns:


Copyright © 2012 KnowledgePlaza. All Rights Reserved.