public static class ContentCacheImpl.CacheWriter extends FileContentWriter
AbstractContentAccessor.CallbackFileChannel, AbstractContentAccessor.ChannelCloseCallbackAdvise| Constructor and Description |
|---|
CacheWriter(File file,
String url) |
| Modifier and Type | Method and Description |
|---|---|
protected org.alfresco.service.cmr.repository.ContentReader |
createReader()
The URL of the write is known from the start and this method contract states
that no consideration needs to be taken w.r.t.
|
File |
getFile() |
long |
getSize() |
void |
setCacheFile(File file) |
canWrite, getDirectWritableChanneladdListener, getContentLimitProvider, getContentOutputStream, getExistingContentReader, getFileChannel, getReader, getWritableChannel, guessEncoding, guessMimetype, isChannelOpen, isClosed, putContent, putContent, putContent, putContent, setContentLimitProvider, setMimetypeServicechannelOpened, finalize, getCallbackFileChannel, getContentData, getContentUrl, getEncoding, getLocale, getMimetype, setContentUrl, setEncoding, setLocale, setMimetype, toStringpublic void setCacheFile(File file)
public File getFile()
getFile in class FileContentWriterprotected org.alfresco.service.cmr.repository.ContentReader createReader()
throws org.alfresco.service.cmr.repository.ContentIOException
FileContentWritercreateReader in class FileContentWriterorg.alfresco.service.cmr.repository.ContentIOExceptionpublic long getSize()
getSize in interface org.alfresco.service.cmr.repository.ContentAccessorgetSize in class FileContentWriterCopyright © 2005–2018 Alfresco Software. All rights reserved.