Package gov.nasa.worldwind.layers
Class BasicTiledImageLayer.DownloadPostProcessor
- java.lang.Object
-
- gov.nasa.worldwind.retrieve.AbstractRetrievalPostProcessor
-
- gov.nasa.worldwind.layers.BasicTiledImageLayer.DownloadPostProcessor
-
- All Implemented Interfaces:
RetrievalPostProcessor
- Direct Known Subclasses:
BasicTiledImageLayerBulkDownloader.BulkDownloadPostProcessor
- Enclosing class:
- BasicTiledImageLayer
protected static class BasicTiledImageLayer.DownloadPostProcessor extends AbstractRetrievalPostProcessor
-
-
Field Summary
Fields Modifier and Type Field Description protected FileStorefileStoreprotected BasicTiledImageLayerlayerprotected TextureTiletile-
Fields inherited from class gov.nasa.worldwind.retrieve.AbstractRetrievalPostProcessor
avList, retriever
-
-
Constructor Summary
Constructors Constructor Description DownloadPostProcessor(TextureTile tile, BasicTiledImageLayer layer)DownloadPostProcessor(TextureTile tile, BasicTiledImageLayer layer, FileStore fileStore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.io.FiledoGetOutputFile()Abstract method that subclasses must provide to identify the output file for the post-processor's retrieval content.protected java.lang.ObjectgetFileLock()Returns an object that can be used to synchronize writing to the output file.protected FileStoregetFileStore()protected java.nio.ByteBufferhandleSuccessfulRetrieval()Process the retrieved data if it has been retrieved successfully.protected java.nio.ByteBufferhandleTextContent()Handles Text content.protected voidmarkResourceAbsent()Marks the retrieval target absent.-
Methods inherited from class gov.nasa.worldwind.retrieve.AbstractRetrievalPostProcessor
convertToDDS, getOutputFile, getRetriever, handleApplicationContent, handleContent, handleContentException, handleHTMLContent, handleImageContent, handleInvalidResponseCode, handleUnknownContentType, handleUnsuccessfulRetrieval, handleWMSExceptionContent, handleXMLContent, handleZipContent, isDeleteOnExit, isPrimaryContentType, isWMSException, logTextBuffer, overwriteExistingFile, run, saveBuffer, saveBuffer, saveDDS, transformPixels, validateHTTPResponseCode, validateJarResponseCode, validateResponseCode
-
-
-
-
Field Detail
-
tile
protected final TextureTile tile
-
layer
protected final BasicTiledImageLayer layer
-
fileStore
protected final FileStore fileStore
-
-
Constructor Detail
-
DownloadPostProcessor
public DownloadPostProcessor(TextureTile tile, BasicTiledImageLayer layer)
-
DownloadPostProcessor
public DownloadPostProcessor(TextureTile tile, BasicTiledImageLayer layer, FileStore fileStore)
-
-
Method Detail
-
getFileStore
protected FileStore getFileStore()
-
markResourceAbsent
protected void markResourceAbsent()
Description copied from class:AbstractRetrievalPostProcessorMarks the retrieval target absent. Subclasses should override this method if they keep track of absent-resources. The default implementation does nothing.- Overrides:
markResourceAbsentin classAbstractRetrievalPostProcessor
-
getFileLock
protected java.lang.Object getFileLock()
Description copied from class:AbstractRetrievalPostProcessorReturns an object that can be used to synchronize writing to the output file. Superclasses should override this method and return the object used as a lock by other objects that read or otherwise interact with the output file.- Overrides:
getFileLockin classAbstractRetrievalPostProcessor- Returns:
- an object to use for read/write synchronization, or null if no lock is needed.
-
doGetOutputFile
protected java.io.File doGetOutputFile()
Description copied from class:AbstractRetrievalPostProcessorAbstract method that subclasses must provide to identify the output file for the post-processor's retrieval content.- Specified by:
doGetOutputFilein classAbstractRetrievalPostProcessor- Returns:
- the output file.
-
handleSuccessfulRetrieval
protected java.nio.ByteBuffer handleSuccessfulRetrieval()
Description copied from class:AbstractRetrievalPostProcessorProcess the retrieved data if it has been retrieved successfully.- Overrides:
handleSuccessfulRetrievalin classAbstractRetrievalPostProcessor- Returns:
- a buffer containing the downloaded data, perhaps converted during content handling.
-
handleTextContent
protected java.nio.ByteBuffer handleTextContent() throws java.io.IOExceptionDescription copied from class:AbstractRetrievalPostProcessorHandles Text content. If the content type is text/xml,AbstractRetrievalPostProcessor.handleXMLContent()is called. If the content type is text/html,AbstractRetrievalPostProcessor.handleHTMLContent()is called. For all other sub-types the content is logged as a message with levelLevel.SEVERE.- Overrides:
handleTextContentin classAbstractRetrievalPostProcessor- Returns:
- a buffer containing the retrieved text.
- Throws:
java.io.IOException- if an IO error occurs while processing the data.
-
-