gov.nasa.worldwind.retrieve
Class JarRetriever
java.lang.Object
gov.nasa.worldwind.avlist.AVListImpl
gov.nasa.worldwind.WWObjectImpl
gov.nasa.worldwind.retrieve.URLRetriever
gov.nasa.worldwind.retrieve.JarRetriever
- All Implemented Interfaces:
- AVList, MessageListener, Retriever, WWObject, PropertyChangeListener, Callable<Retriever>, EventListener
public class JarRetriever
- extends URLRetriever
Retrieves resources identified by a jar url, which has the form jar:!/{entry}, as in:
jar:http://www.foo.com/bar/baz.jar!/COM/foo/Quux.class. See JarURLConnection for a full description
of jar URLs.
| Fields inherited from class gov.nasa.worldwind.retrieve.URLRetriever |
beginTime, byteBuffer, connection, connectTimeout, contentLength, contentLengthRead, contentType, endTime, expiration, EXTRACT_ZIP_ENTRY, postProcessor, readTimeout, staleRequestLimit, state, submitTime, url |
| Methods inherited from class gov.nasa.worldwind.retrieve.URLRetriever |
call, configureSSLContext, createRetriever, end, equals, getBeginTime, getBuffer, getConnection, getConnectTimeout, getContentLength, getContentLengthRead, getContentType, getEndTime, getExpiration, getExpirationTime, getName, getPostProcessor, getReadTimeout, getStaleRequestLimit, getState, getSubmitTime, getUrl, getURL, hashCode, interrupted, openConnection, read, readNonSpecificStream, readNonSpecificStreamUnknownLength, readZipStream, setBeginTime, setConnectTimeout, setContentLengthRead, setEndTime, setReadTimeout, setStaleRequestLimit, setState, setSubmitTime, toString |
| Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl |
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues |
| Methods inherited from interface gov.nasa.worldwind.avlist.AVList |
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues |
JarRetriever
public JarRetriever(URL url,
RetrievalPostProcessor postProcessor)
doRead
protected ByteBuffer doRead(URLConnection connection)
throws Exception
- Overrides:
doRead in class URLRetriever
- Parameters:
connection - the connection to read from.
- Returns:
- a buffer containing the content read from the connection
- Throws:
Exception - if connection is null or an exception occurs during reading.
IllegalArgumentException - if connection is null
getResponseCode
public int getResponseCode()
getResponseMessage
public String getResponseMessage()