Class JarRetriever

  • All Implemented Interfaces:
    AVList, MessageListener, Retriever, WWObject, java.beans.PropertyChangeListener, java.util.concurrent.Callable<Retriever>, java.util.EventListener

    public class JarRetriever
    extends URLRetriever
    Retrieves resources identified by a jar url, which has the form 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.
    • Method Detail

      • getResponseCode

        public int getResponseCode()
      • getResponseMessage

        public java.lang.String getResponseMessage()
      • doRead

        protected java.nio.ByteBuffer doRead​(java.net.URLConnection connection)
                                      throws java.lang.Exception
        Overrides:
        doRead in class URLRetriever
        Parameters:
        connection - the connection to read from.
        Returns:
        a buffer containing the content read from the connection
        Throws:
        java.lang.Exception - if connection is null or an exception occurs during reading.
        java.lang.IllegalArgumentException - if connection is null