protected static class BasicTiledImageLayer.DownloadPostProcessor extends AbstractRetrievalPostProcessor
Modifier and Type | Field and Description |
---|---|
protected FileStore |
fileStore |
protected BasicTiledImageLayer |
layer |
protected TextureTile |
tile |
avList, retriever
Constructor and Description |
---|
DownloadPostProcessor(TextureTile tile,
BasicTiledImageLayer layer) |
DownloadPostProcessor(TextureTile tile,
BasicTiledImageLayer layer,
FileStore fileStore) |
Modifier and Type | Method and Description |
---|---|
protected File |
doGetOutputFile()
Abstract method that subclasses must provide to identify the output file for the post-processor's retrieval
content.
|
protected Object |
getFileLock()
Returns an object that can be used to synchronize writing to the output file.
|
protected FileStore |
getFileStore() |
protected ByteBuffer |
handleSuccessfulRetrieval()
Process the retrieved data if it has been retrieved successfully.
|
protected ByteBuffer |
handleTextContent()
Handles Text content.
|
protected void |
markResourceAbsent()
Marks the retrieval target absent.
|
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
protected final FileStore fileStore
protected final BasicTiledImageLayer layer
protected final TextureTile tile
public DownloadPostProcessor(TextureTile tile, BasicTiledImageLayer layer)
public DownloadPostProcessor(TextureTile tile, BasicTiledImageLayer layer, FileStore fileStore)
protected File doGetOutputFile()
AbstractRetrievalPostProcessor
doGetOutputFile
in class AbstractRetrievalPostProcessor
protected Object getFileLock()
AbstractRetrievalPostProcessor
getFileLock
in class AbstractRetrievalPostProcessor
protected FileStore getFileStore()
protected ByteBuffer handleSuccessfulRetrieval()
AbstractRetrievalPostProcessor
handleSuccessfulRetrieval
in class AbstractRetrievalPostProcessor
protected ByteBuffer handleTextContent() throws IOException
AbstractRetrievalPostProcessor
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 level Level.SEVERE
.handleTextContent
in class AbstractRetrievalPostProcessor
IOException
- if an IO error occurs while processing the data.protected void markResourceAbsent()
AbstractRetrievalPostProcessor
markResourceAbsent
in class AbstractRetrievalPostProcessor