|
ModeShape Distribution 3.0.0.Alpha5 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.modeshape.jcr.value.binary.AbstractBinaryStore
@ThreadSafe public abstract class AbstractBinaryStore

An abstract class for a BinaryStore, with common functionality needed by implementation classes.
| Field Summary | |
|---|---|
protected static int |
MEDIUM_BUFFER_SIZE
|
| Fields inherited from interface org.modeshape.jcr.value.binary.BinaryStore |
|---|
DEFAULT_MINIMUM_BINARY_SIZE_IN_BYTES |
| Constructor Summary | |
|---|---|
AbstractBinaryStore()
|
|
| Method Summary | |
|---|---|
static int |
bestBufferSize(long fileSize)
|
protected MimeTypeDetector |
detector()
Get the MIME type detector that can be used to find the MIME type for binary content |
protected TextExtractor |
extractor()
Get the text extractor that can be used to extract text by this store. |
long |
getMinimumBinarySizeInBytes()
Get the minimum number of bytes that a binary value must contain before it can be stored in the binary store. |
void |
setMimeTypeDetector(MimeTypeDetector mimeTypeDetector)
Set the MIME type detector that can be used for determining the MIME type for binary content. |
void |
setMinimumBinarySizeInBytes(long minSizeInBytes)
Set the minimum number of bytes that a binary value must contain before it can be stored in the binary store. |
void |
setTextExtractor(TextExtractor textExtractor)
Set the text extractor that can be used for extracting text from binary content. |
void |
shutdown()
|
void |
start()
Initialize the store and get ready for use. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.modeshape.jcr.value.binary.BinaryStore |
|---|
getInputStream, getMimeType, getText, markAsUnused, removeValuesUnusedLongerThan, storeValue |
| Field Detail |
|---|
protected static final int MEDIUM_BUFFER_SIZE
| Constructor Detail |
|---|
public AbstractBinaryStore()
| Method Detail |
|---|
public static int bestBufferSize(long fileSize)
public long getMinimumBinarySizeInBytes()
BinaryStore
getMinimumBinarySizeInBytes in interface BinaryStorepublic void setMinimumBinarySizeInBytes(long minSizeInBytes)
BinaryStore
setMinimumBinarySizeInBytes in interface BinaryStoreminSizeInBytes - the minimum number of bytes for a stored binary value; may not be negativepublic void setTextExtractor(TextExtractor textExtractor)
BinaryStore
setTextExtractor in interface BinaryStoretextExtractor - the text extractorpublic void setMimeTypeDetector(MimeTypeDetector mimeTypeDetector)
BinaryStore
setMimeTypeDetector in interface BinaryStoremimeTypeDetector - the detectorprotected final TextExtractor extractor()
protected final MimeTypeDetector detector()
public void start()
public void shutdown()
|
ModeShape Distribution 3.0.0.Alpha5 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||