Package net.sourceforge.javautil.common.io

Examples of net.sourceforge.javautil.common.io.VirtualFile


   * @param target The target file or directory that will store the contents
   *
   * @see #scp(VirtualPath, OutputStream)
   */
  public void scp (VirtualPath source, VirtualArtifact target) throws IOException {
    VirtualFile file = target instanceof VirtualFile ?
      (VirtualFile) target : ((VirtualDirectory)target).createFile(source.getPart(source.getPartCount()-1));
     
    OutputStream output = null;
    try {
      this.scp(source, output = file.getOutputStream());
    } finally {
      if (output != null) output.close();
    }
  }
View Full Code Here

TOP

Related Classes of net.sourceforge.javautil.common.io.VirtualFile

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.