Package gov.nasa.worldwind.layers
Class TiledImageLayer.CompositionRetrievalPostProcessor
- java.lang.Object
-
- gov.nasa.worldwind.retrieve.AbstractRetrievalPostProcessor
-
- gov.nasa.worldwind.layers.TiledImageLayer.CompositionRetrievalPostProcessor
-
- All Implemented Interfaces:
RetrievalPostProcessor
- Enclosing class:
- TiledImageLayer
protected class TiledImageLayer.CompositionRetrievalPostProcessor extends AbstractRetrievalPostProcessor
-
-
Field Summary
Fields Modifier and Type Field Description protected TextureTiletile-
Fields inherited from class gov.nasa.worldwind.retrieve.AbstractRetrievalPostProcessor
avList, retriever
-
-
Constructor Summary
Constructors Constructor Description CompositionRetrievalPostProcessor(TextureTile tile)
-
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 voidhandleUnsuccessfulRetrieval()Called when the retrieval state is other thanRetriever.RETRIEVER_STATE_SUCCESSFUL.protected booleanisDeleteOnExit(java.io.File outFile)Indicates whether the output file should have its delete-on-exit flag set so that it's deleted when the JVM terminates.protected voidmarkResourceAbsent()Marks the retrieval target absent.protected booleanoverwriteExistingFile()Indicates whether the retrieved data should be written to the output file if a file of the same name already exists.-
Methods inherited from class gov.nasa.worldwind.retrieve.AbstractRetrievalPostProcessor
convertToDDS, getFileLock, getOutputFile, getRetriever, handleApplicationContent, handleContent, handleContentException, handleHTMLContent, handleImageContent, handleInvalidResponseCode, handleSuccessfulRetrieval, handleTextContent, handleUnknownContentType, handleWMSExceptionContent, handleXMLContent, handleZipContent, isPrimaryContentType, isWMSException, logTextBuffer, run, saveBuffer, saveBuffer, saveDDS, transformPixels, validateHTTPResponseCode, validateJarResponseCode, validateResponseCode
-
-
-
-
Field Detail
-
tile
protected TextureTile tile
-
-
Constructor Detail
-
CompositionRetrievalPostProcessor
public CompositionRetrievalPostProcessor(TextureTile tile)
-
-
Method Detail
-
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.
-
isDeleteOnExit
protected boolean isDeleteOnExit(java.io.File outFile)
Description copied from class:AbstractRetrievalPostProcessorIndicates whether the output file should have its delete-on-exit flag set so that it's deleted when the JVM terminates.- Overrides:
isDeleteOnExitin classAbstractRetrievalPostProcessor- Parameters:
outFile- the output file.- Returns:
- true if the output file's delete-on-exit flag should be set, otherwise false.
-
overwriteExistingFile
protected boolean overwriteExistingFile()
Description copied from class:AbstractRetrievalPostProcessorIndicates whether the retrieved data should be written to the output file if a file of the same name already exists. The default implementation of this method returns false (files are not overwritten).- Overrides:
overwriteExistingFilein classAbstractRetrievalPostProcessor- Returns:
- true if an existing file should be overwritten, otherwise false.
-
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
-
handleUnsuccessfulRetrieval
protected void handleUnsuccessfulRetrieval()
Description copied from class:AbstractRetrievalPostProcessorCalled when the retrieval state is other thanRetriever.RETRIEVER_STATE_SUCCESSFUL. Can be overridden by subclasses to handle special error cases. The default implementation callsAbstractRetrievalPostProcessor.markResourceAbsent()if the retrieval state isRetriever.RETRIEVER_STATE_ERROR.- Overrides:
handleUnsuccessfulRetrievalin classAbstractRetrievalPostProcessor
-
-