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.Transportworkaround for https://bugs.eclipse.org/357357
-
-
Field Summary
Fields Modifier and Type Field Description private static org.eclipse.core.runtime.StatusOFFLINE_STATUS
-
Constructor Summary
Constructors Constructor Description OfflineTransport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.core.runtime.IStatusdownload(java.net.URI toDownload, java.io.OutputStream target, long startPos, org.eclipse.core.runtime.IProgressMonitor monitor)org.eclipse.core.runtime.IStatusdownload(java.net.URI toDownload, java.io.OutputStream target, org.eclipse.core.runtime.IProgressMonitor monitor)longgetLastModified(java.net.URI toDownload, org.eclipse.core.runtime.IProgressMonitor monitor)java.io.InputStreamstream(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:
downloadin 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:
downloadin 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:
streamin classorg.eclipse.equinox.internal.p2.repository.Transport- Throws:
java.io.FileNotFoundExceptionorg.eclipse.core.runtime.CoreExceptionorg.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:
getLastModifiedin classorg.eclipse.equinox.internal.p2.repository.Transport- Throws:
org.eclipse.core.runtime.CoreExceptionjava.io.FileNotFoundExceptionorg.eclipse.equinox.internal.p2.repository.AuthenticationFailedException
-
-