|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry5.internal.services.StreamableResourceImpl
public class StreamableResourceImpl
| Constructor Summary | |
|---|---|
StreamableResourceImpl(URL url,
long lastModified)
|
|
| Method Summary | |
|---|---|
String |
getContentType()
Returns the content type available from the underlying URLConnection, which may be null. |
long |
getLastModified()
Returns the time the underlying file was last modified. |
int |
getSize(boolean compress)
Returns the size of the content |
InputStream |
getStream(boolean compress)
Returns the raw input stream (wrapped in a BufferedInputStream, or the compressed bytestream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StreamableResourceImpl(URL url,
long lastModified)
| Method Detail |
|---|
public int getSize(boolean compress)
throws IOException
StreamableResource
getSize in interface StreamableResourcecompress - if true, return size of compressed content
IOException
public InputStream getStream(boolean compress)
throws IOException
StreamableResourceBufferedInputStream, or the compressed bytestream.
getStream in interface StreamableResourcecompress - if true, return compressed version
IOException
public long getLastModified()
throws IOException
StreamableResource
getLastModified in interface StreamableResourceIOException
public String getContentType()
throws IOException
StreamableResourceURLConnection, which may be null.
getContentType in interface StreamableResourceIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||