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 |
|---|
PlaceNameLayer.DownloadPostProcessor(PlaceNameLayer layer,
PlaceNameLayer.Tile tile) |
PlaceNameLayer.DownloadPostProcessor(PlaceNameLayer layer,
PlaceNameLayer.Tile tile,
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 |
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, validateResponseCodeprotected final FileStore fileStore
protected final PlaceNameLayer layer
protected final PlaceNameLayer.Tile tile
public PlaceNameLayer.DownloadPostProcessor(PlaceNameLayer layer, PlaceNameLayer.Tile tile)
public PlaceNameLayer.DownloadPostProcessor(PlaceNameLayer layer, PlaceNameLayer.Tile tile, FileStore fileStore)
protected File doGetOutputFile()
AbstractRetrievalPostProcessordoGetOutputFile in class AbstractRetrievalPostProcessorprotected Object getFileLock()
AbstractRetrievalPostProcessorgetFileLock in class AbstractRetrievalPostProcessorprotected FileStore getFileStore()
protected ByteBuffer handleSuccessfulRetrieval()
AbstractRetrievalPostProcessorhandleSuccessfulRetrieval in class AbstractRetrievalPostProcessorprotected ByteBuffer handleXMLContent() throws IOException
AbstractRetrievalPostProcessorAbstractRetrievalPostProcessor.logTextBuffer(java.nio.ByteBuffer) and
returns.handleXMLContent in class AbstractRetrievalPostProcessorIOException - if an IO error occurs while processing the data.protected void markResourceAbsent()
AbstractRetrievalPostProcessormarkResourceAbsent in class AbstractRetrievalPostProcessor