public class UsbFileHttpServer extends java.lang.Object implements UsbFileProvider
com.github.mjdev.libaums.fs.UsbFiles
to another app.
For instance it can make an image available to the Web Browser without copying it to the internal
storage, or a video file to a video file as a HTTP stream.| Constructor and Description |
|---|
UsbFileHttpServer(UsbFile file,
HttpServer server) |
| Modifier and Type | Method and Description |
|---|---|
UsbFile |
determineFileToServe(java.lang.String uri) |
java.lang.String |
getBaseUrl() |
boolean |
isAlive() |
void |
start() |
void |
stop() |
public UsbFileHttpServer(UsbFile file,
HttpServer server)
public java.lang.String getBaseUrl()
public void start()
throws java.io.IOException
java.io.IOExceptionpublic void stop()
throws java.io.IOException
java.io.IOExceptionpublic boolean isAlive()
public UsbFile determineFileToServe(java.lang.String uri)
throws java.io.IOException
determineFileToServe in interface UsbFileProviderjava.io.IOException