gov.nasa.worldwind.util
Class WWIO
java.lang.Object
gov.nasa.worldwind.util.WWIO
public class WWIO
- extends Object
Constructor Summary |
WWIO()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ILLEGAL_FILE_PATH_PART_CHARACTERS
public static final String ILLEGAL_FILE_PATH_PART_CHARACTERS
- See Also:
- Constant Field Values
WWIO
public WWIO()
configureProxy
public static Proxy configureProxy()
formPath
public static String formPath(String... pathParts)
getFileOrResourceAsStream
public static Object getFileOrResourceAsStream(String path,
Class c)
isFileOutOfDate
public static boolean isFileOutOfDate(URL url,
long expiryTime)
makeSuffixForMimeType
public static String makeSuffixForMimeType(String mimeType)
mapFile
public static MappedByteBuffer mapFile(File file)
throws IOException
- Throws:
IOException
readFileToBuffer
public static ByteBuffer readFileToBuffer(File file)
throws IOException
- Throws:
IOException
readStreamToBuffer
public static ByteBuffer readStreamToBuffer(InputStream inputStream)
throws IOException
- Throws:
IOException
readURLContentToBuffer
public static ByteBuffer readURLContentToBuffer(URL url)
throws IOException
- Throws:
IOException
readZipEntryToBuffer
public static ByteBuffer readZipEntryToBuffer(File zipFile,
String entryName)
throws IOException
- Throws:
IOException
replaceSuffix
public static String replaceSuffix(String in,
String newSuffix)
saveBuffer
public static boolean saveBuffer(ByteBuffer buffer,
File file)
throws IOException
- Throws:
IOException
saveBufferToTempFile
public static File saveBufferToTempFile(ByteBuffer buffer,
String suffix)
throws IOException
- Throws:
IOException
stripIllegalFileNameCharacters
public static String stripIllegalFileNameCharacters(String s)