public class BackingStoreAwareCacheWriter extends Object implements ContentWriter, MimetypeServiceAware
| Constructor and Description |
|---|
BackingStoreAwareCacheWriter(ContentWriter cacheWriter,
ContentWriter bsWriter) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(ContentStreamListener listener) |
ContentData |
getContentData() |
OutputStream |
getContentOutputStream() |
String |
getContentUrl() |
String |
getEncoding() |
FileChannel |
getFileChannel(boolean truncate) |
Locale |
getLocale() |
String |
getMimetype() |
ContentReader |
getReader() |
long |
getSize() |
WritableByteChannel |
getWritableChannel() |
void |
guessEncoding() |
void |
guessMimetype(String filename) |
boolean |
isChannelOpen() |
boolean |
isClosed() |
void |
putContent(ContentReader reader) |
void |
putContent(File file) |
void |
putContent(InputStream is) |
void |
putContent(String content) |
void |
setEncoding(String encoding) |
void |
setLocale(Locale locale) |
void |
setMimetype(String mimetype) |
void |
setMimetypeService(MimetypeService mimetypeService) |
public BackingStoreAwareCacheWriter(ContentWriter cacheWriter, ContentWriter bsWriter)
public boolean isChannelOpen()
isChannelOpen in interface ContentAccessorpublic void addListener(ContentStreamListener listener)
addListener in interface ContentAccessorpublic long getSize()
getSize in interface ContentAccessorpublic ContentData getContentData()
getContentData in interface ContentAccessorpublic String getContentUrl()
getContentUrl in interface ContentAccessorpublic String getMimetype()
getMimetype in interface ContentAccessorpublic void setMimetype(String mimetype)
setMimetype in interface ContentAccessorpublic String getEncoding()
getEncoding in interface ContentAccessorpublic void setEncoding(String encoding)
setEncoding in interface ContentAccessorpublic Locale getLocale()
getLocale in interface ContentAccessorpublic void setLocale(Locale locale)
setLocale in interface ContentAccessorpublic ContentReader getReader() throws ContentIOException
getReader in interface ContentWriterContentIOExceptionpublic boolean isClosed()
isClosed in interface ContentWriterpublic WritableByteChannel getWritableChannel() throws ContentIOException
getWritableChannel in interface ContentWriterContentIOExceptionpublic FileChannel getFileChannel(boolean truncate) throws ContentIOException
getFileChannel in interface ContentWriterContentIOExceptionpublic OutputStream getContentOutputStream() throws ContentIOException
getContentOutputStream in interface ContentWriterContentIOExceptionpublic void putContent(ContentReader reader) throws ContentIOException
putContent in interface ContentWriterContentIOExceptionpublic void putContent(InputStream is) throws ContentIOException
putContent in interface ContentWriterContentIOExceptionpublic void putContent(File file) throws ContentIOException
putContent in interface ContentWriterContentIOExceptionpublic void putContent(String content) throws ContentIOException
putContent in interface ContentWriterContentIOExceptionpublic void guessMimetype(String filename)
guessMimetype in interface ContentWriterpublic void guessEncoding()
guessEncoding in interface ContentWriterpublic void setMimetypeService(MimetypeService mimetypeService)
setMimetypeService in interface MimetypeServiceAwareCopyright © 2005–2021 Alfresco Software. All rights reserved.