public static class ContentCacheImpl.CacheWriter extends FileContentWriter
AbstractContentAccessor.CallbackFileChannel, AbstractContentAccessor.ChannelCloseCallbackAdvise| Constructor and Description |
|---|
ContentCacheImpl.CacheWriter(java.io.File file,
java.lang.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.
|
java.io.File |
getFile() |
long |
getSize() |
void |
setCacheFile(java.io.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 ContentCacheImpl.CacheWriter(java.io.File file,
java.lang.String url)
public void setCacheFile(java.io.File file)
public java.io.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 - 2010 Alfresco Software, Inc. All Rights Reserved.