NASA World Wind

gov.nasa.worldwind.util
Class WWIO

java.lang.Object
  extended by gov.nasa.worldwind.util.WWIO

public class WWIO
extends java.lang.Object


Field Summary
static java.lang.String ILLEGAL_FILE_PATH_PART_CHARACTERS
           
 
Constructor Summary
WWIO()
           
 
Method Summary
static java.net.Proxy configureProxy()
           
static java.lang.String formPath(java.lang.String... pathParts)
           
static java.lang.Object getFileOrResourceAsStream(java.lang.String path, java.lang.Class c)
           
static boolean isFileOutOfDate(java.net.URL url, long expiryTime)
           
static java.lang.String makeSuffixForMimeType(java.lang.String mimeType)
           
static java.nio.MappedByteBuffer mapFile(java.io.File file)
           
static java.nio.ByteBuffer readFileToBuffer(java.io.File file)
           
static java.nio.ByteBuffer readStreamToBuffer(java.io.InputStream inputStream)
           
static java.nio.ByteBuffer readURLContentToBuffer(java.net.URL url)
           
static java.nio.ByteBuffer readZipEntryToBuffer(java.io.File zipFile, java.lang.String entryName)
           
static java.lang.String replaceSuffix(java.lang.String in, java.lang.String newSuffix)
           
static boolean saveBuffer(java.nio.ByteBuffer buffer, java.io.File file)
           
static java.io.File saveBufferToTempFile(java.nio.ByteBuffer buffer, java.lang.String suffix)
           
static java.lang.String stripIllegalFileNameCharacters(java.lang.String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ILLEGAL_FILE_PATH_PART_CHARACTERS

public static final java.lang.String ILLEGAL_FILE_PATH_PART_CHARACTERS
See Also:
Constant Field Values
Constructor Detail

WWIO

public WWIO()
Method Detail

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)

NASA World Wind