public class InputStreamContent extends java.lang.Object implements Content, java.io.Serializable
| Constructor and Description |
|---|
InputStreamContent(java.io.InputStream stream,
java.lang.String mimetype,
java.lang.String encoding)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContent()
Gets content as a string
|
java.lang.String |
getEncoding()
Gets the content encoding
|
java.io.InputStream |
getInputStream()
Gets the content input stream
|
java.lang.String |
getMimetype()
Gets the content mimetype
|
java.io.Reader |
getReader()
Gets the content reader (which is sensitive to encoding)
|
long |
getSize()
Gets the content length (in bytes)
|
public InputStreamContent(java.io.InputStream stream,
java.lang.String mimetype,
java.lang.String encoding)
stream - content input streammimetype - content mimetypepublic java.lang.String getContent()
throws java.io.IOException
ContentgetContent in interface Contentjava.io.IOExceptionpublic java.io.InputStream getInputStream()
ContentgetInputStream in interface Contentpublic java.io.Reader getReader()
throws java.io.IOException
Contentpublic long getSize()
Contentpublic java.lang.String getMimetype()
ContentgetMimetype in interface Contentpublic java.lang.String getEncoding()
ContentgetEncoding in interface ContentCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.