mirror of
https://github.com/Rogiel/httpchannel
synced 2025-12-05 23:22:51 +00:00
Fixes site deployment configuration and updades README file
This commit is contained in:
16
README
16
README
@@ -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!
|
||||
11
README.md
Normal file
11
README.md
Normal file
@@ -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());
|
||||
2
pom.xml
2
pom.xml
@@ -174,7 +174,7 @@
|
||||
<configuration>
|
||||
<message>Creating ${project.artifactId} site for ${project.version}</message>
|
||||
<repositoryOwner>seedbox</repositoryOwner>
|
||||
<repositoryOwner>httpchannel.github.com</repositoryOwner>
|
||||
<repositoryName>httpchannsel.github.com</repositoryName>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
|
||||
Reference in New Issue
Block a user