Class Handler
java.lang.Object
java.net.URLStreamHandler
org.archive.net.rsync.Handler
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidMain dumps rsync file to STDOUT.protected URLConnectionMethods inherited from class java.net.URLStreamHandler
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, parseURL, sameFile, setURL, setURL, toExternalForm
-
Constructor Details
-
Handler
public Handler()
-
-
Method Details
-
openConnection
- Specified by:
openConnectionin classURLStreamHandler
-
main
Main dumps rsync file to STDOUT.- Parameters:
args-- Throws:
IOException
-