public class JarRetriever extends URLRetriever
jar:<url>!/{entry}
, as in:
jar:http://www.foo.com/bar/baz.jar!/COM/foo/Quux.class. See JarURLConnection
for a full description
of jar URLs.beginTime, byteBuffer, connection, connectTimeout, contentLength, contentLengthRead, contentType, endTime, expiration, EXTRACT_ZIP_ENTRY, postProcessor, readTimeout, staleRequestLimit, state, submitTime, url
RETRIEVER_STATE_CONNECTING, RETRIEVER_STATE_ERROR, RETRIEVER_STATE_INTERRUPTED, RETRIEVER_STATE_NOT_STARTED, RETRIEVER_STATE_READING, RETRIEVER_STATE_STARTED, RETRIEVER_STATE_SUCCESSFUL
Constructor and Description |
---|
JarRetriever(java.net.URL url,
RetrievalPostProcessor postProcessor) |
Modifier and Type | Method and Description |
---|---|
protected java.nio.ByteBuffer |
doRead(java.net.URLConnection connection) |
int |
getResponseCode() |
java.lang.String |
getResponseMessage() |
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
onMessage, propertyChange
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
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
onMessage
public JarRetriever(java.net.URL url, RetrievalPostProcessor postProcessor)
protected java.nio.ByteBuffer doRead(java.net.URLConnection connection) throws java.lang.Exception
doRead
in class URLRetriever
connection
- the connection to read from.java.lang.Exception
- if connection
is null or an exception occurs during reading.java.lang.IllegalArgumentException
- if connection
is nullpublic int getResponseCode()
public java.lang.String getResponseMessage()