public class XJarURLConnection extends AbstractJarURLConnection
jarFileURLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
Modifier | Constructor and Description |
---|---|
protected |
XJarURLConnection(URL url)
Creates an XJar URL connection.
|
protected |
XJarURLConnection(URL url,
XJarFile jarFile)
Creates an XJar URL connection.
|
Modifier and Type | Method and Description |
---|---|
void |
connect()
Opens a communications link to the resource referenced by this
URL, if such a connection has not already been established.
|
InputStream |
getInputStream()
Returns an input stream that reads from this open connection.
|
IJarFile |
getJarFile()
Gets the IJarFile.
|
getAttributes, getCertificates, getEntryName, getJarEntry, getJarFileURL, getMainAttributes, getManifest
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLength, getContentLengthLong, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFieldLong, getHeaderFields, getIfModifiedSince, getLastModified, getOutputStream, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString
protected XJarURLConnection(URL url) throws MalformedURLException
url
- The requested URL.MalformedURLException
protected XJarURLConnection(URL url, XJarFile jarFile) throws MalformedURLException
url
- The requested URL.jarFile
- The open Jar file.MalformedURLException
public IJarFile getJarFile() throws IOException
getJarFile
in class AbstractJarURLConnection
IOException
- if an IOException occurs while trying to
connect to the JAR file for this connection.URLConnection.connect()
public void connect() throws IOException
If the connect
method is called when the connection
has already been opened (indicated by the connected
field having the value true
), the call is ignored.
connect
in class URLConnection
IOException
- if an I/O error occurs while opening the connection.public InputStream getInputStream() throws IOException
getInputStream
in class URLConnection
IOException
- if an I/O error occurs while creating the input stream.iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.