From 4efdcd2e18856a778cdea6a85a9e721479b076d2 Mon Sep 17 00:00:00 2001 From: Rogiel Date: Mon, 23 Jan 2012 00:47:11 -0200 Subject: [PATCH] Fixes site deployment configuration and updades README file --- README | 16 ---------------- README.md | 11 +++++++++++ pom.xml | 2 +- 3 files changed, 12 insertions(+), 17 deletions(-) delete mode 100644 README create mode 100644 README.md diff --git a/README b/README deleted file mode 100644 index 88d200f..0000000 --- a/README +++ /dev/null @@ -1,16 +0,0 @@ -== What is this? == - -This is a Java Library written to simplify download and upload from multiple -free share sites. - -Instead of writing an specific API for each situation, I designed a single API -capable of almost everything! Upload and downloads are done through Java.NIO -Channels and with those you can stream the file, both up and down. - -Also, if you wish, you can easily (with less than 10 lines!) implement an -file copier. It downloads the file from one server and transfer it to another! - -== Can I use it already? == -The API is basically done, but so far not much servers are supported, but you -are, however, free to use it already! By the way, once you start using it, if -you develop any new service, please share with me! \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..985b755 --- /dev/null +++ b/README.md @@ -0,0 +1,11 @@ +The HttpChannel library is a library that povides downloading and uploading capabilities to several share-sites (such as MegaUpload and FileSonic). +Obviously, the API supports a lot more services, but those are the most commonly used. Aside from that, the biggest point of the library is its simple usage, you don't need to use any customized API to perform download or uploads, you simply use the standard Java NIO Channels for both upload and download. + + final UploadService service = Services.getUploadService("megaupload"); + final Uploader uploader = UploadServices.upload(service, Path.get("test-file.txt")); + final UploadChannel channel = uploader.openChannel(); + // now, you can perform any operation you want with this channel! Lets copy its data + ChannelUtils.copy(inputChannel, channel); + // this may take some time, it will finish the upload and generate the download link + channel.close(); + System.out.println("Download Link: "+channel.getDownloadLink()); \ No newline at end of file diff --git a/pom.xml b/pom.xml index 12f786c..66acf2a 100644 --- a/pom.xml +++ b/pom.xml @@ -174,7 +174,7 @@ Creating ${project.artifactId} site for ${project.version} seedbox - httpchannel.github.com + httpchannsel.github.com