public class UsbFileHttpServer extends java.lang.Object implements UsbFileProvider
com.github.mjdev.libaums.fs.UsbFile
s
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.IOException
public void stop() throws java.io.IOException
java.io.IOException
public boolean isAlive()
public UsbFile determineFileToServe(java.lang.String uri) throws java.io.IOException
determineFileToServe
in interface UsbFileProvider
java.io.IOException