|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.retrieve.AbstractRetrievalPostProcessor
gov.nasa.worldwind.cache.BasicDataFileStore.PostProcessor
protected class BasicDataFileStore.PostProcessor
| Field Summary | |
|---|---|
protected String |
address
|
protected URL |
localFileUrl
|
protected File |
outputFile
|
protected URL |
retrievalUrl
|
protected boolean |
saveInLocalCache
|
| Fields inherited from class gov.nasa.worldwind.retrieve.AbstractRetrievalPostProcessor |
|---|
avList, retriever |
| Constructor Summary | |
|---|---|
BasicDataFileStore.PostProcessor(String address,
URL url,
boolean saveInLocalCache)
|
|
| Method Summary | |
|---|---|
protected File |
doGetOutputFile()
Abstract method that subclasses must provide to identify the output file for the post-processor's retrieval content. |
protected ByteBuffer |
handleSuccessfulRetrieval()
Process the retrieved data if it has been retrieved successfully. |
protected ByteBuffer |
handleTextContent()
Handles Text content. |
protected File |
makeOutputFile()
|
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. |
protected boolean |
saveBuffer()
Saves the retrieved and possibly transformed data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String address
protected URL localFileUrl
protected File outputFile
protected URL retrievalUrl
protected boolean saveInLocalCache
| Constructor Detail |
|---|
public BasicDataFileStore.PostProcessor(String address,
URL url,
boolean saveInLocalCache)
| Method Detail |
|---|
protected File doGetOutputFile()
AbstractRetrievalPostProcessor
doGetOutputFile in class AbstractRetrievalPostProcessorprotected ByteBuffer handleSuccessfulRetrieval()
AbstractRetrievalPostProcessor
handleSuccessfulRetrieval in class AbstractRetrievalPostProcessor
protected ByteBuffer handleTextContent()
throws IOException
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. Overridden to save text files in the cache.
handleTextContent in class AbstractRetrievalPostProcessorIOException - if an IO error occurs while processing the data.protected File makeOutputFile()
protected void markResourceAbsent()
AbstractRetrievalPostProcessor
markResourceAbsent in class AbstractRetrievalPostProcessorprotected boolean overwriteExistingFile()
AbstractRetrievalPostProcessor
overwriteExistingFile in class AbstractRetrievalPostProcessor
protected boolean saveBuffer()
throws IOException
AbstractRetrievalPostProcessorAbstractRetrievalPostProcessor.saveBuffer(java.nio.ByteBuffer) with an argument
of null.
saveBuffer in class AbstractRetrievalPostProcessorIOException - if an IO error occurs while attempting to save the buffer.
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||