|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.Reader
org.benow.java.io.ResultReader
org.benow.web.path.page.stream.FileResultReader
public class FileResultReader
Delivers a file, introspecting mime type and optionally deletes the file after delivery.
| Field Summary |
|---|
| Fields inherited from class java.io.Reader |
|---|
lock |
| Constructor Summary | |
|---|---|
FileResultReader(java.io.File file,
boolean deleteAfterDeliver)
|
|
| Method Summary | |
|---|---|
void |
close()
|
| Methods inherited from class org.benow.java.io.ResultReader |
|---|
getMimeType, getSuggestedFileName, read |
| Methods inherited from class java.io.Reader |
|---|
mark, markSupported, read, read, read, ready, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileResultReader(java.io.File file,
boolean deleteAfterDeliver)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class org.benow.java.io.ResultReaderjava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||