public class Stream
extends java.lang.Object
Constructor and Description |
---|
Stream(java.io.InputStream is,
java.lang.String mimeType,
java.lang.String charset,
java.lang.String cacheKey,
java.net.URL url)
The constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCacheKey()
When caching the stream, use the cache key
|
java.lang.String |
getCharset()
Used to get the charset type of the stream
|
java.io.InputStream |
getInputStream()
Used to get the input stream
|
java.lang.String |
getMineType()
Used to get the mime type of the stream
|
java.net.URL |
getURL()
Used to get the URL the stream was read from
|
public Stream(java.io.InputStream is, java.lang.String mimeType, java.lang.String charset, java.lang.String cacheKey, java.net.URL url)
is
- The input stream to the contents of the URLmimeType
- The mime type of the streamcharset
- The charset type of the streamcacheKey
- When caching the stream, use the cache keyurl
- The URL the stream was read frompublic java.lang.String getMineType()
public java.io.InputStream getInputStream()
public java.lang.String getCharset()
public java.lang.String getCacheKey()
public java.net.URL getURL()