Throws: IllegalArgumentException - if the specified string is null. Returns: a new string with illegal filename characters replaced. Replaces any illegal filename characters in a specified string with an underscore, "_". openFileOrResourceStream public static InputStream openFileOrResourceStream( String fileName,.Throws: IOException - if the file cannot be mapped for any reason. Returns: a MappedByteBuffer representing the File's bytes. Construction options exist to specify a specific graphics device and to share graphics resources with another graphics device. Its a self-contained component intended to serve as an applications WorldWindow. This will stop WorldWind from trying to download tiles, and it will rely on the local cache only. WorldWindowGLCanvas is a heavyweight AWT component for displaying World Wind Model s (globe and layers). Indicates whether World Wind should attempt to connect to the network to retrieve data or for other reasons. The addresses used to detect public network access can be explicitly specified. mode - the mapping mode, one of _ONLY, _WRITE, or . .OfflineMode in the WorldWind properties file. Methods are provided to determine whether the public network can be reached and whether the NASA World Wind servers cab be reached. The specified file must be avialable for both reading and writing. If the mode is, the file is mapped in copy-on-write mode.Ĭhanging the contents of the returned MappedByteBuffer causes private copies of portions of the buffer to beĬreated. The specifiedįile must be avialable for both reading and writing. If the mode is _WRITE, the file is mapped in read-write mode.Ĭhanging the contents of the returned MappedByteBuffer to be eventually propagated to the file. If the mode is _ONLY, the file is mapped in read-only mode, andĪny attempt to modify the contents of the returned MappedByteBuffer causes a ReadOnlyBufferException. Maps the specified File's bytes directly into memory as a MappedByteBuffer according to the makeDataTypeForMimeType public static String makeDataTypeForMimeType( String mimeType).makeCachePathForURL public static String makeCachePathForURL( URL url).listDescendantFilenames protected static void listDescendantFilenames( File parent,.Throws: IllegalArgumentException - if the file is null. Specified file, or null if the specified file is not a directory. Returns: an array of relative file paths naming the files and directories in the directory tree rooted by the recurseAfterMatch - true to list the contents of directory branches beneath a match false to ignoreīranches beneath a match. Parameters: file - the directory tree who's contents to list. This returns null if the specified file is not a directory. If the filter is null, then all files andĭirectories are accepted. The returned paths are relative to the specified file. This has the effect of listing the top matches in theĭirectory tree. This ignores any directory branches beneath a matched file. If the parameter recurseAfterMatch is false, then Specified file, that satisfy the specified filter. Returns an array of relative file paths naming the files and directories in the directory tree rooted by the
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |