|
EchoPoint API - 3.0.0b5 App Webcontainer |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectechopoint.tucana.AbstractDownloadProvider
echopoint.tucana.InputStreamDownloadProvider
public class InputStreamDownloadProvider
A download provider implementation that streams the contents of the specified input stream to the client request output stream on demand.
| Field Summary |
|---|
| Fields inherited from class echopoint.tucana.AbstractDownloadProvider |
|---|
contentDisposition, contentType, fileName, size, status |
| Constructor Summary | |
|---|---|
InputStreamDownloadProvider(InputStream stream)
Create a new download provider instance for the specified input stream. |
|
| Method Summary | |
|---|---|
String |
getContentType()
Returns the content type, for example "text/plain". |
String |
getFileName()
Returns the file name, for example "my-file.txt". |
void |
writeFile(OutputStream out)
Writes the file data to the output stream. |
| Methods inherited from class echopoint.tucana.AbstractDownloadProvider |
|---|
getContentDisposition, getSize, getStatus, setContentType, setFileName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InputStreamDownloadProvider(InputStream stream)
stream - The input stream from which to stream the output.| Method Detail |
|---|
public String getContentType()
DownloadProvider
public void writeFile(OutputStream out)
throws IOException
DownloadProvider
out - the output stream to which the file data must be written.
IOException - If errors are encountered while writing to the
output stream.public String getFileName()
AbstractDownloadProvider
getFileName in interface DownloadProvidergetFileName in class AbstractDownloadProvider
|
EchoPoint API - 3.0.0b5 App Webcontainer |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||