public final class BufferUtil extends Object
Modifier and Type | Method and Description |
---|---|
static void |
releaseBuffer(MappedByteBuffer buffer)
Due to a weakness in the implementation in mapped byte buffers on windows, the underlying
file cannot be deleted even if all channels/files are closed.
|
static void |
releaseBufferSilently(MappedByteBuffer buffer)
Calls
releaseBuffer(MappedByteBuffer) and silently catches all exceptions. |
public static void releaseBuffer(MappedByteBuffer buffer) throws Exception
buffer
- Exception
public static void releaseBufferSilently(MappedByteBuffer buffer)
releaseBuffer(MappedByteBuffer)
and silently catches all exceptions.buffer
- Copyright © 2014. All Rights Reserved.