gov.nasa.worldwind.util
Class WWIO
java.lang.Object
gov.nasa.worldwind.util.WWIO
public class WWIO
- extends java.lang.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 java.lang.String ILLEGAL_FILE_PATH_PART_CHARACTERS
- See Also:
- Constant Field Values
WWIO
public WWIO()
configureProxy
public static java.net.Proxy configureProxy()
formPath
public static java.lang.String formPath(java.lang.String... pathParts)
getFileOrResourceAsStream
public static java.lang.Object getFileOrResourceAsStream(java.lang.String path,
java.lang.Class c)
isFileOutOfDate
public static boolean isFileOutOfDate(java.net.URL url,
long expiryTime)
makeSuffixForMimeType
public static java.lang.String makeSuffixForMimeType(java.lang.String mimeType)
mapFile
public static java.nio.MappedByteBuffer mapFile(java.io.File file)
throws java.io.IOException
- Throws:
java.io.IOException
readFileToBuffer
public static java.nio.ByteBuffer readFileToBuffer(java.io.File file)
throws java.io.IOException
- Throws:
java.io.IOException
readStreamToBuffer
public static java.nio.ByteBuffer readStreamToBuffer(java.io.InputStream inputStream)
throws java.io.IOException
- Throws:
java.io.IOException
readURLContentToBuffer
public static java.nio.ByteBuffer readURLContentToBuffer(java.net.URL url)
throws java.io.IOException
- Throws:
java.io.IOException
readZipEntryToBuffer
public static java.nio.ByteBuffer readZipEntryToBuffer(java.io.File zipFile,
java.lang.String entryName)
throws java.io.IOException
- Throws:
java.io.IOException
replaceSuffix
public static java.lang.String replaceSuffix(java.lang.String in,
java.lang.String newSuffix)
saveBuffer
public static boolean saveBuffer(java.nio.ByteBuffer buffer,
java.io.File file)
throws java.io.IOException
- Throws:
java.io.IOException
saveBufferToTempFile
public static java.io.File saveBufferToTempFile(java.nio.ByteBuffer buffer,
java.lang.String suffix)
throws java.io.IOException
- Throws:
java.io.IOException
stripIllegalFileNameCharacters
public static java.lang.String stripIllegalFileNameCharacters(java.lang.String s)