NASA World Wind

gov.nasa.worldwind.layers
Class TiledImageLayer.CompositionRetrievalPostProcessor

java.lang.Object
  extended by gov.nasa.worldwind.retrieve.AbstractRetrievalPostProcessor
      extended by gov.nasa.worldwind.layers.TiledImageLayer.CompositionRetrievalPostProcessor
All Implemented Interfaces:
RetrievalPostProcessor
Enclosing class:
TiledImageLayer

protected class TiledImageLayer.CompositionRetrievalPostProcessor
extends AbstractRetrievalPostProcessor


Field Summary
protected  TextureTile tile
           
 
Fields inherited from class gov.nasa.worldwind.retrieve.AbstractRetrievalPostProcessor
avList, retriever
 
Constructor Summary
TiledImageLayer.CompositionRetrievalPostProcessor(TextureTile tile)
           
 
Method Summary
protected  File doGetOutputFile()
          Abstract method that subclasses must provide to identify the output file for the post-processor's retrieval content.
protected  void handleUnsuccessfulRetrieval()
          Called when the retrieval state is other than Retriever.RETRIEVER_STATE_SUCCESSFUL.
protected  boolean isDeleteOnExit(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  void markResourceAbsent()
          Marks the retrieval target absent.
protected  boolean overwriteExistingFile()
          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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tile

protected TextureTile tile
Constructor Detail

TiledImageLayer.CompositionRetrievalPostProcessor

public TiledImageLayer.CompositionRetrievalPostProcessor(TextureTile tile)
Method Detail

doGetOutputFile

protected File doGetOutputFile()
Description copied from class: AbstractRetrievalPostProcessor
Abstract method that subclasses must provide to identify the output file for the post-processor's retrieval content.

Specified by:
doGetOutputFile in class AbstractRetrievalPostProcessor
Returns:
the output file.

handleUnsuccessfulRetrieval

protected void handleUnsuccessfulRetrieval()
Description copied from class: AbstractRetrievalPostProcessor
Called when the retrieval state is other than Retriever.RETRIEVER_STATE_SUCCESSFUL. Can be overridden by subclasses to handle special error cases. The default implementation calls AbstractRetrievalPostProcessor.markResourceAbsent() if the retrieval state is Retriever.RETRIEVER_STATE_ERROR.

Overrides:
handleUnsuccessfulRetrieval in class AbstractRetrievalPostProcessor

isDeleteOnExit

protected boolean isDeleteOnExit(File outFile)
Description copied from class: AbstractRetrievalPostProcessor
Indicates whether the output file should have its delete-on-exit flag set so that it's deleted when the JVM terminates.

Overrides:
isDeleteOnExit in class AbstractRetrievalPostProcessor
Parameters:
outFile - the output file.
Returns:
true if the output file's delete-on-exit flag should be set, otherwise false.

markResourceAbsent

protected void markResourceAbsent()
Description copied from class: AbstractRetrievalPostProcessor
Marks the retrieval target absent. Subclasses should override this method if they keep track of absent-resources. The default implementation does nothing.

Overrides:
markResourceAbsent in class AbstractRetrievalPostProcessor

overwriteExistingFile

protected boolean overwriteExistingFile()
Description copied from class: AbstractRetrievalPostProcessor
Indicates 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:
overwriteExistingFile in class AbstractRetrievalPostProcessor
Returns:
true if an existing file should be overwritten, otherwise false.

NASA World Wind