|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContentStream
Method Summary | |
---|---|
String |
getContentType()
|
String |
getName()
|
Reader |
getReader()
Get an open stream. |
Long |
getSize()
|
String |
getSourceInfo()
|
InputStream |
getStream()
Get an open stream. |
Method Detail |
---|
String getName()
String getSourceInfo()
String getContentType()
Long getSize()
null
if not knownInputStream getStream() throws IOException
InputStream stream = stream.getStream(); try { // use the stream... } finally { IOUtils.closeQuietly(reader); }Only the first call to
getStream()
or getReader()
is gaurenteed to work. The runtime behavior for aditional calls is undefined.
IOException
Reader getReader() throws IOException
Reader reader = stream.getReader(); try { // use the reader... } finally { IOUtils.closeQuietly(reader); }Only the first call to
getStream()
or getReader()
is gaurenteed to work. The runtime behavior for aditional calls is undefined.
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |