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, getDirectWritableChannel
addListener, getContentLimitProvider, getContentOutputStream, getExistingContentReader, getFileChannel, getReader, getWritableChannel, guessEncoding, guessMimetype, isChannelOpen, isClosed, putContent, putContent, putContent, putContent, setContentLimitProvider, setMimetypeService
channelOpened, finalize, getCallbackFileChannel, getContentData, getContentUrl, getEncoding, getLocale, getMimetype, setContentUrl, setEncoding, setLocale, setMimetype, toString
public void setCacheFile(File file)
public File getFile()
getFile
in class FileContentWriter
protected org.alfresco.service.cmr.repository.ContentReader createReader() throws org.alfresco.service.cmr.repository.ContentIOException
FileContentWriter
createReader
in class FileContentWriter
org.alfresco.service.cmr.repository.ContentIOException
public long getSize()
getSize
in interface org.alfresco.service.cmr.repository.ContentAccessor
getSize
in class FileContentWriter
Copyright © 2005–2017 Alfresco Software. All rights reserved.