|
This class does not provide remote access to the file.
Nested classes/interfaces inherited from class org.alfresco.repo.content.AbstractContentAccessor |
AbstractContentAccessor.CallbackFileChannel, AbstractContentAccessor.ChannelCloseCallbackAdvise |
Constructor Summary | ||
FileContentWriter(File file) Constructor that builds a URL based on the absolute path of the file. |
||
FileContentWriter(File file, String url, ContentReader existingContentReader) Constructor that explicitely sets the URL that the reader represents. |
||
FileContentWriter(File file, ContentReader existingContentReader) Constructor that builds a URL based on the absolute path of the file. |
Method Summary | ||
boolean |
canWrite() | |
protected 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. |
|
protected WritableByteChannel |
getDirectWritableChannel() Provides low-level access to write content to the repository. |
|
getFile() | ||
long |
getSize() Gets the size of the content that this reader references. |
Methods inherited from class org.alfresco.repo.content.AbstractContentWriter |
addListener, getContentLimitProvider, getContentOutputStream, getExistingContentReader, getFileChannel, getReader, getWritableChannel, guessEncoding, guessMimetype, isChannelOpen, isClosed, putContent, putContent, putContent, putContent, setContentLimitProvider, setMimetypeService |
Methods inherited from class org.alfresco.repo.content.AbstractContentAccessor |
channelOpened, finalize, getCallbackFileChannel, getContentData, getContentUrl, getEncoding, getLocale, getMimetype, setContentUrl, setEncoding, setLocale, setMimetype, toString |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
This is the only of the content writing methods that needs to be implemented by derived classes. All other content access methods make use of this in their underlying implementations.
|