org.archive.net.rsync
Class Handler

java.lang.Object
  extended by java.net.URLStreamHandler
      extended by org.archive.net.rsync.Handler

public class Handler
extends java.net.URLStreamHandler

A protocol handler that uses native rsync client to do copy. You need to define the system property -Djava.protocol.handler.pkgs=org.archive.net to add this handler to the java.net.URL set. Assumes rsync is in path. Define system property -Dorg.archive.net.rsync.RsyncUrlConnection.path=PATH_TO_RSYNC to pass path to rsync. Downloads to java.io.tmpdir.

Author:
stack

Constructor Summary
Handler()
           
 
Method Summary
static void main(java.lang.String[] args)
          Main dumps rsync file to STDOUT.
protected  java.net.URLConnection openConnection(java.net.URL u)
           
 
Methods inherited from class java.net.URLStreamHandler
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, parseURL, sameFile, setURL, setURL, toExternalForm
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Handler

public Handler()
Method Detail

openConnection

protected java.net.URLConnection openConnection(java.net.URL u)
Specified by:
openConnection in class java.net.URLStreamHandler

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Main dumps rsync file to STDOUT.

Parameters:
args -
Throws:
java.io.IOException


Copyright © 2003-2011 Internet Archive. All Rights Reserved.