public static boolean isFileMapped ( ByteBuffer bb ) { if ( bb instanceof MappedByteBuffer ) { try { ( ( MappedByteBuffer ) bb ) . isLoaded ( ) ; return true ; } catch ( UnsupportedOperationException ex ) { } } return false ; }
Determines if the specified ByteBuffer is one which maps to a file!