Package org.apache.tika.io
Class MappedBufferCleaner
- java.lang.Object
-
- org.apache.tika.io.MappedBufferCleaner
-
public class MappedBufferCleaner extends java.lang.Object
Copied/pasted from the Apache Lucene/Solr project.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
UNMAP_NOT_SUPPORTED_REASON
ifUNMAP_SUPPORTED
isfalse
, this contains the reason why unmapping is not supported.static boolean
UNMAP_SUPPORTED
true
, if this platform supports unmapping mmapped files.
-
Constructor Summary
Constructors Constructor Description MappedBufferCleaner()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
freeBuffer(java.nio.ByteBuffer b)
If a cleaner is available, this buffer will be cleaned.
-
-
-
Field Detail
-
UNMAP_SUPPORTED
public static final boolean UNMAP_SUPPORTED
true
, if this platform supports unmapping mmapped files.
-
UNMAP_NOT_SUPPORTED_REASON
public static final java.lang.String UNMAP_NOT_SUPPORTED_REASON
ifUNMAP_SUPPORTED
isfalse
, this contains the reason why unmapping is not supported.
-
-