public class LargeFileSystemConnector extends FileSystemConnector
Connector.ExtraProperties| Constructor and Description |
|---|
LargeFileSystemConnector() |
| Modifier and Type | Method and Description |
|---|---|
protected ExternalBinaryValue |
createBinaryValue(File file)
Utility method to create a
BinaryValue object for the given file overriding FileSystemConnector. |
binaryFor, checkFileNotExcluded, contentBasedSha1, createFileForUrl, createUrlForFile, fileFor, getBinaryValue, getChildren, getDocumentById, getDocumentId, getDocumentPathsById, hasDocument, idFor, initialize, isContentNode, isExcluded, isRoot, newDocumentId, removeDocument, sha1, storeDocument, updateDocumentisReadonlycheckFieldNotNull, extraPropertiesFor, extraPropertiesStore, factories, getCacheTtlSeconds, getChildReference, getContext, getEnvironment, getLogger, getMimeTypeDetector, getRepositoryName, getSourceName, getTransactionManager, isQueryable, log, nameFrom, nameFrom, nameFrom, newChildReference, newConnectorChangedSet, newDocument, newPageDocument, pathFactory, pathFrom, pathFrom, propertyFactory, readDocument, setExtraPropertiesStore, shutdown, translator, writeDocumentprotected ExternalBinaryValue createBinaryValue(File file) throws IOException
BinaryValue object for the given file overriding FileSystemConnector. Subclasses should rarely override this method,
since the UrlBinaryValue will be applicable in most situations, but in this subclass is overriding using FileUrlBinaryValue
to lazily compute a contentBased Hash when the key is a URI based Hash. Option contentBasedSha1=false should only be used in "write-once" directories
as modifying the file will not change stored hashcreateBinaryValue in class FileSystemConnectorfile - the file for which the BinaryValue is to be created; never nullIOException - if there is an error creating the valueCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.