public class AbstractCmisContentStream extends Object implements ContentStream
| Constructor and Description |
|---|
AbstractCmisContentStream(org.apache.chemistry.opencmis.commons.data.ContentStream cmisContentStream) |
| Modifier and Type | Method and Description |
|---|---|
String |
getFileName() |
long |
getLength() |
String |
getMimeType() |
InputStream |
getStream() |
void |
output(OutputStream output)
Streams the content from this stream into the supplied output stream.
|
void |
write(Writer writer)
Writes the content of this stream into the supplied Writer using UTF-8 encoding.
|
void |
write(Writer writer,
String encoding)
Writes the content of this stream into the supplied Writer using the specified character encoding.
|
public AbstractCmisContentStream(org.apache.chemistry.opencmis.commons.data.ContentStream cmisContentStream)
public String getFileName()
getFileName in interface ContentStreampublic long getLength()
getLength in interface ContentStreampublic String getMimeType()
getMimeType in interface ContentStreampublic InputStream getStream()
getStream in interface ContentStreampublic void output(OutputStream output) throws IOException
ContentStreamoutput in interface ContentStreamIOExceptionpublic void write(Writer writer) throws IOException
ContentStreamwrite in interface ContentStreamIOExceptionpublic void write(Writer writer, String encoding) throws IOException
ContentStreamwrite in interface ContentStreamIOExceptionCopyright © 2005–2014 Alfresco Software. All rights reserved.