org.archive.net.s3
Class Handler

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

public class Handler
extends java.net.URLStreamHandler

A protocol handler for an s3 scheme. Takes URLs of the form: s3://aws.access.key.id:aws.access.key.secret@BUCKET/PATH (Same as in hadoop).

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)
                                         throws java.io.IOException
Specified by:
openConnection in class java.net.URLStreamHandler
Throws:
java.io.IOException

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.