|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.net.URLStreamHandler
org.archive.net.rsync.Handler
public class 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.
| 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 |
|---|
public Handler()
| Method Detail |
|---|
protected java.net.URLConnection openConnection(java.net.URL u)
openConnection in class java.net.URLStreamHandler
public static void main(java.lang.String[] args)
throws java.io.IOException
args -
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||