@ThreadSafe public class FileResource extends Object implements Resource
Constructor and Description |
---|
FileResource(File file) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Indicates the system no longer needs to keep this
response body and any system resources associated with
it may be reclaimed.
|
InputStream |
getInputStream()
Returns an
InputStream from which the response
body can be read. |
long |
length()
Returns the length in bytes of the response body.
|
public FileResource(File file)
public InputStream getInputStream() throws IOException
Resource
InputStream
from which the response
body can be read.getInputStream
in interface Resource
IOException
public long length()
Resource
Copyright © 1999–2013 The Apache Software Foundation. All rights reserved.