private String [ ] platformNames ( String libraryName ) { if ( isWindows ) return new String [ ] { libraryName + ( is64Bit ? "64.dll" : ".dll" ) } ; if ( isLinux ) return new String [ ] { "lib" + libraryName + ( is64Bit ? "64.so" : ".so" ) } ; if ( isMac ) return new String [ ] { "lib" + libraryName + ".jnilib" , "lib" + libraryName + ".dylib" } ; return new String [ ] { libraryName } ; }
Maps a platform independent library name to one or more platform dependent names .