public class NpJarURLConnection extends JarURLConnection
jarFileURLConnectionallowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches| Modifier | Constructor and Description |
|---|---|
protected |
NpJarURLConnection(URL url)
Creates an NpJar 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.
|
Attributes |
getAttributes() |
Certificate[] |
getCertificates() |
InputStream |
getInputStream()
Returns an input stream that reads from this open connection.
|
JarFile |
getJarFile()
Gets the Jar file associated with the URL connection.
|
Attributes |
getMainAttributes() |
Manifest |
getManifest() |
getEntryName, getJarEntry, getJarFileURLaddRequestProperty, 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, toStringprotected NpJarURLConnection(URL url) throws MalformedURLException
url - The requested URL.MalformedURLExceptionpublic JarFile getJarFile() throws IOException
getJarFile in class JarURLConnectionIOExceptionpublic 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 URLConnectionIOException - if an I/O error occurs while opening the connection.public Attributes getAttributes() throws IOException
getAttributes in class JarURLConnectionIOExceptionpublic Certificate[] getCertificates() throws IOException
getCertificates in class JarURLConnectionIOExceptionpublic Attributes getMainAttributes() throws IOException
getMainAttributes in class JarURLConnectionIOExceptionpublic Manifest getManifest() throws IOException
getManifest in class JarURLConnectionIOExceptionpublic InputStream getInputStream() throws IOException
getInputStream in class URLConnectionIOException - if an I/O error occurs while creating the input stream.Phantom® and NetPhantom® are registered trademarks of Nexum Technologies SARL.
© Copyright Nexum Technologies SARL, 2011. All rights reserved.