|
This class does not provide remote access to the file.
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, channelOpened, finalize, getCallbackFileChannel, getContentData, getContentLimitProvider, getContentOutputStream, getContentUrl, getEncoding, getExistingContentReader, getFileChannel, getLocale, getMimetype, getReader, getWritableChannel, guessEncoding, guessMimetype, isChannelOpen, isClosed, putContent, putContent, putContent, putContent, setContentLimitProvider, setContentUrl, setEncoding, setLocale, setMimetype, setMimetypeService, 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.
|