|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectjava.net.URLConnection
org.eclipse.emf.common.archive.ArchiveURLConnection
org.eclipse.emf.ecore.resource.impl.URIConverterImpl.Archive
A specialized class for reading from an archive.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.emf.common.archive.ArchiveURLConnection |
|---|
urlString |
| Fields inherited from class java.net.URLConnection |
|---|
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches |
| Constructor Summary | |
|---|---|
URIConverterImpl.Archive(URI uri)
|
|
| Method Summary | |
|---|---|
protected java.io.InputStream |
createInputStream(java.lang.String nestedURL)
Creates an input stream for the nested URL by calling URL#openStream()opening a stream on it. |
protected java.io.OutputStream |
createOutputStream(java.lang.String nestedURL)
Creates an input stream for the nested URL by calling URL#openStream()opening a stream on it. |
protected boolean |
emulateArchiveScheme()
Returns whether the implementation will handle all the archive accessors directly. |
protected boolean |
useZipFile()
Returns whether to handle the special case of a nested URL with file: schema using a ZipFile.
|
| Methods inherited from class org.eclipse.emf.common.archive.ArchiveURLConnection |
|---|
connect, getInputStream, getOutputStream |
| Methods inherited from class java.net.URLConnection |
|---|
addRequestProperty, getAllowUserInteraction, getContent, getContent, getContentEncoding, getContentLength, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFields, getIfModifiedSince, getLastModified, getPermission, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setRequestProperty, setUseCaches, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public URIConverterImpl.Archive(URI uri)
| Method Detail |
protected boolean emulateArchiveScheme()
ArchiveURLConnectionarchive:jar:file:///c:/temp/example.zip!/org/example/nested.zip!/org/example/deeply-nested.htmlwill be handled as if it were specified as
archive:file:///c:/temp/example.zip!/org/example/nested.zip!/org/example/deeply-nested.htmlOverride this only if you are reusing the logic of retrieving an input stream into an archive and hence are likely to be overriding createInputStream, which is the point of delegation to the nested URL for recursive stream creation.
emulateArchiveScheme in class ArchiveURLConnectionprotected boolean useZipFile()
ArchiveURLConnectionZipFile.
This gives more efficient direct access to the root entry, e.g.,
archive:file:///c:/temp/example.zip!/org/example/nested.html
useZipFile in class ArchiveURLConnection
protected java.io.InputStream createInputStream(java.lang.String nestedURL)
throws java.io.IOException
ArchiveURLConnectionURL#openStream()opening a stream on it.
createInputStream in class ArchiveURLConnectionnestedURL - the nested URL for which a stream is required.
java.io.IOException
protected java.io.OutputStream createOutputStream(java.lang.String nestedURL)
throws java.io.IOException
ArchiveURLConnectionURL#openStream()opening a stream on it.
createOutputStream in class ArchiveURLConnectionnestedURL - the nested URL for which a stream is required.
java.io.IOException
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||