protected static class PlaceNameLayer.DownloadPostProcessor extends AbstractRetrievalPostProcessor
Modifier and Type | Field and Description |
---|---|
protected FileStore |
fileStore |
protected PlaceNameLayer |
layer |
protected PlaceNameLayer.Tile |
tile |
avList, retriever
Constructor and Description |
---|
DownloadPostProcessor(PlaceNameLayer layer,
PlaceNameLayer.Tile tile) |
DownloadPostProcessor(PlaceNameLayer layer,
PlaceNameLayer.Tile tile,
FileStore fileStore) |
Modifier and Type | Method and Description |
---|---|
protected java.io.File |
doGetOutputFile()
Abstract method that subclasses must provide to identify the output file for the post-processor's retrieval
content.
|
protected java.lang.Object |
getFileLock()
Returns an object that can be used to synchronize writing to the output file.
|
protected FileStore |
getFileStore() |
protected java.nio.ByteBuffer |
handleSuccessfulRetrieval()
Process the retrieved data if it has been retrieved successfully.
|
protected java.nio.ByteBuffer |
handleXMLContent()
Handles XML content.
|
protected void |
markResourceAbsent()
Marks the retrieval target absent.
|
convertToDDS, getOutputFile, getRetriever, handleApplicationContent, handleContent, handleContentException, handleHTMLContent, handleImageContent, handleInvalidResponseCode, handleTextContent, handleUnknownContentType, handleUnsuccessfulRetrieval, handleWMSExceptionContent, handleZipContent, isDeleteOnExit, isPrimaryContentType, isWMSException, logTextBuffer, overwriteExistingFile, run, saveBuffer, saveBuffer, saveDDS, transformPixels, validateHTTPResponseCode, validateJarResponseCode, validateResponseCode
protected final FileStore fileStore
protected final PlaceNameLayer layer
protected final PlaceNameLayer.Tile tile
public DownloadPostProcessor(PlaceNameLayer layer, PlaceNameLayer.Tile tile)
public DownloadPostProcessor(PlaceNameLayer layer, PlaceNameLayer.Tile tile, FileStore fileStore)
protected java.io.File doGetOutputFile()
AbstractRetrievalPostProcessor
doGetOutputFile
in class AbstractRetrievalPostProcessor
protected java.lang.Object getFileLock()
AbstractRetrievalPostProcessor
getFileLock
in class AbstractRetrievalPostProcessor
protected FileStore getFileStore()
protected java.nio.ByteBuffer handleSuccessfulRetrieval()
AbstractRetrievalPostProcessor
handleSuccessfulRetrieval
in class AbstractRetrievalPostProcessor
protected java.nio.ByteBuffer handleXMLContent() throws java.io.IOException
AbstractRetrievalPostProcessor
AbstractRetrievalPostProcessor.logTextBuffer(java.nio.ByteBuffer)
and
returns.handleXMLContent
in class AbstractRetrievalPostProcessor
java.io.IOException
- if an IO error occurs while processing the data.protected void markResourceAbsent()
AbstractRetrievalPostProcessor
markResourceAbsent
in class AbstractRetrievalPostProcessor