TrueZIP Samples 7.1

de.schlichtherle.truezip.sample.kernel.app
Class Copy

java.lang.Object
  extended by de.schlichtherle.truezip.sample.kernel.app.Copy

public final class Copy
extends Object

A poor man's blend of the cp(1) or curl(1) command line utilities for copying the contents of the first parameter URI to the second parameter URI.

Author:
Christian Schlichtherle
See Also:
cURL and libcurl - Home Page

Constructor Summary
Copy()
           
 
Method Summary
(package private) static void copy(String src, String dst)
          Copies the contents of the parameter source to the parameter destination.
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Copy

public Copy()
Method Detail

main

public static void main(String[] args)
                 throws IOException
Throws:
IOException

copy

static void copy(String src,
                 String dst)
          throws IOException
Copies the contents of the parameter source to the parameter destination.

Parameters:
src - the URI string of the copy source.
dst - the URI string of the copy destination.
Throws:
IOException - if accessing the peers results in an I/O error.
IllegalArgumentException - if src or src does not conform to the syntax constraints for URIs.

TrueZIP Samples 7.1

Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.