org.geotools.resources
Class NIOUtilities

java.lang.Object
  extended byorg.geotools.resources.NIOUtilities

public class NIOUtilities
extends java.lang.Object

Utility class for managing memory mapped buffers.

Since:
2.0
Version:
$Id: NIOUtilities.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Andres Aimes

Constructor Summary
protected NIOUtilities()
          Do not allows instantiation of this class.
 
Method Summary
static boolean clean(java.nio.ByteBuffer buffer)
          Really closes a without the need to wait for garbage collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NIOUtilities

protected NIOUtilities()
Do not allows instantiation of this class.

To Do:
This constructor will become private when will have been removed.
Method Detail

clean

public static boolean clean(java.nio.ByteBuffer buffer)
Really closes a without the need to wait for garbage collection. Any problems with closing a buffer on Windows (the problem child in this case) will be logged as to the logger of the package name. To force logging of errors, set the System property "org.geotools.io.debugBuffer" to "true".

Parameters:
buffer - The buffer to close.
Returns:
true if the operation was successful, false otherwise.
See Also:
MappedByteBuffer


Copyright © GeoTools. All Rights Reserved.