public interface StreamableResource
Resource
, that can be streamed (ultimately, to a client web browser).Modifier and Type | Method and Description |
---|---|
CompressionStatus |
getCompression()
Indicates if the content is compressed, or compressable.
|
String |
getContentType()
Returns the MIME content type, e.g., "image/jpeg".
|
String |
getDescription()
Describes the underlying
Resource (or resources} for this streamble resource; expressly used
as part of the object's toString() . |
long |
getLastModified()
Returns the time the resource was last modified, with accuracy to one second (so as to match
the HTTP request/response date headers.
|
int |
getSize()
The size, in bytes, of the underlying bytestream.
|
InputStream |
openStream()
Opens the content of the resource as an input stream; the caller is responsible for closing the stream
after reading it.
|
void |
streamTo(OutputStream os)
Streams the resource's content to the provided stream.
|
String getDescription()
Resource
(or resources} for this streamble resource; expressly used
as part of the object's toString()
.CompressionStatus getCompression()
String getContentType()
int getSize()
void streamTo(OutputStream os) throws IOException
IOException
InputStream openStream() throws IOException
IOException
long getLastModified()
Copyright © 2003-2012 The Apache Software Foundation.