public class JarURLConnectionImpl extends JarURLConnection
jarFileURLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
Constructor and Description |
---|
JarURLConnectionImpl(JarFileObject jarFileObject,
FileContent fileContent)
Constructs a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
connect() |
Attributes |
getAttributes() |
Certificate[] |
getCertificates() |
int |
getContentLength() |
String |
getEntryName() |
InputStream |
getInputStream() |
JarEntry |
getJarEntry() |
JarFile |
getJarFile() |
URL |
getJarFileURL() |
Manifest |
getManifest() |
OutputStream |
getOutputStream() |
getMainAttributes
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLengthLong, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFieldLong, getHeaderFields, getIfModifiedSince, getLastModified, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString
public JarURLConnectionImpl(JarFileObject jarFileObject, FileContent fileContent) throws MalformedURLException, FileSystemException
jarFileObject
- The JAR file.fileContent
- THe JAR file contents.MalformedURLException
- Should not happen.FileSystemException
- if an error occurs accessing the JAR file.public void connect()
connect
in class URLConnection
public Attributes getAttributes() throws IOException
getAttributes
in class JarURLConnection
IOException
public Certificate[] getCertificates()
getCertificates
in class JarURLConnection
public int getContentLength()
getContentLength
in class URLConnection
public String getEntryName()
getEntryName
in class JarURLConnection
public InputStream getInputStream() throws IOException
getInputStream
in class URLConnection
IOException
public JarEntry getJarEntry() throws IOException
getJarEntry
in class JarURLConnection
IOException
public JarFile getJarFile() throws IOException
getJarFile
in class JarURLConnection
IOException
public URL getJarFileURL()
getJarFileURL
in class JarURLConnection
public Manifest getManifest() throws IOException
getManifest
in class JarURLConnection
IOException
public OutputStream getOutputStream() throws IOException
getOutputStream
in class URLConnection
IOException
Copyright © 2002–2025 The Apache Software Foundation. All rights reserved.