protected boolean doPause() { if (isPaused() || !isConnected() || isDone()) return false; this.paused = true; return this.paused; }
protected boolean doResume() { if (!isPaused() || isConnected()) return false; return openStreamsForResume(); }
protected boolean doPause() { if (isPaused() || !isConnected() || isDone()) return false; this.paused = true; return this.paused; }
protected boolean doResume() { if (!isPaused() || isConnected()) return false; return openStreamsForResume(); }
protected void hardClose() { // changed for addressing bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=389292 if (getMethod != null) { // First, if !isDone and paused if (!isDone() && isPaused()) getMethod.abort(); // release in any case //getMethod.releaseConnection(); // and set to null getMethod = null; } // Close output stream...if we're supposed to try { if (localFileContents != null && closeOutputStream) localFileContents.close(); } catch (final IOException e) { Activator.getDefault().log(new Status(IStatus.ERROR, Activator.PLUGIN_ID, IStatus.ERROR, "hardClose", e)); //$NON-NLS-1$ } // clear input and output streams remoteFileContents = null; localFileContents = null; // reset response code responseCode = -1; // If we're done and proxy helper still exists, then dispose if (proxyHelper != null && isDone()) { proxyHelper.dispose(); proxyHelper = null; } }
protected void hardClose() { // changed for addressing bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=389292 if (getMethod != null) { // First, if !isDone and paused if (!isDone() && isPaused()) getMethod.abort(); // release in any case //getMethod.releaseConnection(); // and set to null getMethod = null; } // Close output stream...if we're supposed to try { if (localFileContents != null && closeOutputStream) localFileContents.close(); } catch (final IOException e) { Activator.getDefault().log(new Status(IStatus.ERROR, Activator.PLUGIN_ID, IStatus.ERROR, "hardClose", e)); //$NON-NLS-1$ } // clear input and output streams remoteFileContents = null; localFileContents = null; // reset response code responseCode = -1; // If we're done and proxy helper still exists, then dispose if (proxyHelper != null && isDone()) { proxyHelper.dispose(); proxyHelper = null; } }