public class CachingContentStreamImpl extends Object implements ContentStream
| Constructor and Description |
|---|
CachingContentStreamImpl(ContentStream contentStream) |
| Modifier and Type | Method and Description |
|---|---|
void |
finalize() |
String |
getFileName() |
long |
getLength() |
String |
getMimeType() |
InputStream |
getStream() |
void |
output(OutputStream output)
Streams the content from this stream into the supplied output stream.
|
static void |
setTempFolderName(String folderName) |
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 CachingContentStreamImpl(ContentStream contentStream) throws IOException
IOExceptionpublic static void setTempFolderName(String folderName)
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.