Package org.apache.tika.io
Class MappedBufferCleaner
java.lang.Object
org.apache.tika.io.MappedBufferCleaner
Copied/pasted from the Apache Lucene/Solr project.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
ifUNMAP_SUPPORTED
isfalse
, this contains the reason why unmapping is not supported.static final boolean
true
, if this platform supports unmapping mmapped files. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
If a cleaner is available, this buffer will be cleaned.
-
Field Details
-
UNMAP_SUPPORTED
public static final boolean UNMAP_SUPPORTEDtrue
, if this platform supports unmapping mmapped files. -
UNMAP_NOT_SUPPORTED_REASON
ifUNMAP_SUPPORTED
isfalse
, this contains the reason why unmapping is not supported.
-
-
Constructor Details
-
MappedBufferCleaner
public MappedBufferCleaner()
-
-
Method Details
-
freeBuffer
If a cleaner is available, this buffer will be cleaned. Otherwise, this is a no-op.- Parameters:
b
- buffer to clean; no-op if buffer is null- Throws:
IOException
-