Package org.eclipse.tycho.p2.remote
Class OfflineTransport
- java.lang.Object
-
- org.eclipse.equinox.internal.p2.repository.Transport
-
- org.eclipse.tycho.p2.remote.OfflineTransport
-
class OfflineTransport extends org.eclipse.equinox.internal.p2.repository.Transport
workaround for https://bugs.eclipse.org/357357
-
-
Field Summary
Fields Modifier and Type Field Description private static org.eclipse.core.runtime.Status
OFFLINE_STATUS
-
Constructor Summary
Constructors Constructor Description OfflineTransport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.core.runtime.IStatus
download(java.net.URI toDownload, java.io.OutputStream target, long startPos, org.eclipse.core.runtime.IProgressMonitor monitor)
org.eclipse.core.runtime.IStatus
download(java.net.URI toDownload, java.io.OutputStream target, org.eclipse.core.runtime.IProgressMonitor monitor)
long
getLastModified(java.net.URI toDownload, org.eclipse.core.runtime.IProgressMonitor monitor)
java.io.InputStream
stream(java.net.URI toDownload, org.eclipse.core.runtime.IProgressMonitor monitor)
-
-
-
Method Detail
-
download
public org.eclipse.core.runtime.IStatus download(java.net.URI toDownload, java.io.OutputStream target, long startPos, org.eclipse.core.runtime.IProgressMonitor monitor)
- Specified by:
download
in classorg.eclipse.equinox.internal.p2.repository.Transport
-
download
public org.eclipse.core.runtime.IStatus download(java.net.URI toDownload, java.io.OutputStream target, org.eclipse.core.runtime.IProgressMonitor monitor)
- Specified by:
download
in classorg.eclipse.equinox.internal.p2.repository.Transport
-
stream
public java.io.InputStream stream(java.net.URI toDownload, org.eclipse.core.runtime.IProgressMonitor monitor) throws java.io.FileNotFoundException, org.eclipse.core.runtime.CoreException, org.eclipse.equinox.internal.p2.repository.AuthenticationFailedException
- Specified by:
stream
in classorg.eclipse.equinox.internal.p2.repository.Transport
- Throws:
java.io.FileNotFoundException
org.eclipse.core.runtime.CoreException
org.eclipse.equinox.internal.p2.repository.AuthenticationFailedException
-
getLastModified
public long getLastModified(java.net.URI toDownload, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException, java.io.FileNotFoundException, org.eclipse.equinox.internal.p2.repository.AuthenticationFailedException
- Specified by:
getLastModified
in classorg.eclipse.equinox.internal.p2.repository.Transport
- Throws:
org.eclipse.core.runtime.CoreException
java.io.FileNotFoundException
org.eclipse.equinox.internal.p2.repository.AuthenticationFailedException
-
-