daneren2005 / ServerProxy

ServerProxy is a Android library for creating proxy servers to serve files
GNU General Public License v3.0
27 stars 22 forks source link

ServerProxy

ServerProxy is a Android library to provide easy to use classes to create a local server proxies. The following classes exist:

ServerProxy: abstract class which creates a socket and has methods to get a url to reference it.

FileProxy: Streams whichever file is referenced in the url. Can handle partial requests.

BufferProxy: Streams a file which is being concurrently downloaded. Takes a BufferProgress object to determine when the file is finished downloading. This is useful for serving a song to a MediaPlayer which is still being downloaded. Can only handle one at a time.

BufferFile: Interface to be implemented, which is queried to get various information about the file being downloaded