|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 mimetypeMethod Detail |
---|
public String getContent() throws IOException
Content
getContent
in interface Content
IOException
public InputStream getInputStream()
Content
getInputStream
in interface Content
public Reader getReader() throws IOException
Content
getReader
in interface Content
IOException
public long getSize()
Content
getSize
in interface Content
public String getMimetype()
Content
getMimetype
in interface Content
public String getEncoding()
Content
getEncoding
in interface Content
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |