public class FileResponseContent extends java.lang.Object implements ManipulateableContent<FileResponseContent>
| Constructor and Description |
|---|
FileResponseContent(java.io.File file) |
FileResponseContent(java.io.File file,
java.lang.String encoding) |
FileResponseContent(java.lang.String file) |
FileResponseContent(java.lang.String file,
java.lang.String encoding) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContentType() |
java.io.InputStream |
getInputStream() |
long |
lastModified() |
ResponseManipulator |
manipulate() |
FileResponseContent |
self() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetManipulationDataCashingeTagpublic FileResponseContent(java.lang.String file)
public FileResponseContent(java.io.File file)
public FileResponseContent(java.lang.String file,
java.lang.String encoding)
public FileResponseContent(java.io.File file,
java.lang.String encoding)
public java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in interface ResponseContentjava.io.IOExceptionpublic java.lang.String getContentType()
throws java.io.IOException
getContentType in interface ResponseContentjava.io.IOExceptionpublic long lastModified()
throws java.io.IOException
lastModified in interface ResponseContentjava.io.IOExceptionpublic ResponseManipulator manipulate()
manipulate in interface ManipulateableContent<FileResponseContent>public FileResponseContent self()
self in interface ManipulateableContent<FileResponseContent>