public abstract class StreamResource extends Resource
| Modifier and Type | Field and Description |
|---|---|
private java.nio.charset.Charset |
encoding |
| Constructor and Description |
|---|
StreamResource() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
fetchContent() |
protected abstract java.io.InputStream |
fetchStream() |
void |
setEncoding(java.nio.charset.Charset encoding) |
getContent, getName, invalidateCachedContent, refresh, resolvepublic void setEncoding(java.nio.charset.Charset encoding)
public java.lang.String fetchContent()
throws java.io.IOException
fetchContent in class Resourcejava.io.IOExceptionprotected abstract java.io.InputStream fetchStream()
throws java.io.IOException
java.io.IOException