|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.extensions.surf.util.InputStreamContent
public class InputStreamContent
Input Stream based Content
| Constructor Summary | |
|---|---|
InputStreamContent(InputStream stream,
String mimetype,
String encoding)
Constructor |
|
| Method Summary | |
|---|---|
String |
getContent()
Gets content as a string |
String |
getEncoding()
Gets the content encoding |
InputStream |
getInputStream()
Gets the content input stream |
String |
getMimetype()
Gets the content mimetype |
Reader |
getReader()
Gets the content reader (which is sensitive to encoding) |
long |
getSize()
Gets the content length (in bytes) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InputStreamContent(InputStream stream,
String mimetype,
String encoding)
stream - content input streammimetype - content mimetype| Method Detail |
|---|
public String getContent()
throws IOException
Content
getContent in interface ContentIOExceptionpublic InputStream getInputStream()
Content
getInputStream in interface Content
public Reader getReader()
throws IOException
Content
getReader in interface ContentIOExceptionpublic long getSize()
Content
getSize in interface Contentpublic String getMimetype()
Content
getMimetype in interface Contentpublic String getEncoding()
Content
getEncoding in interface Content
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||