/** * @param is the request content input stream * @param progressListener Optional progress listener * @return If the progress listener is non null returns a new input stream decorated with * progress reporting functionality. If progress listener is null it returns the same input * stream. */ @SdkInternalApi public static InputStream inputStreamForRequest(InputStream is, ProgressListener progressListener) { return progressListener == null ? is : new RequestProgressInputStream(is, progressListener); }
@Override protected void onNotifyBytesRead() { publishRequestBytesTransferred(getListener(), getUnnotifiedByteCount()); } }
@Override protected void onReset() { publishRequestReset(getListener(), getNotifiedByteCount()); }
@Override protected void onEOF() { onNotifyBytesRead(); }
@Override protected void onEOF() { onNotifyBytesRead(); }
@Override protected void onNotifyBytesRead() { publishRequestBytesTransferred(getListener(), getUnnotifiedByteCount()); } }
@Override protected void onReset() { publishRequestReset(getListener(), getNotifiedByteCount()); }
/** * @param is the request content input stream * @param progressListener Optional progress listener * @return If the progress listener is non null returns a new input stream decorated with * progress reporting functionality. If progress listener is null it returns the same input * stream. */ @SdkInternalApi public static InputStream inputStreamForRequest(InputStream is, ProgressListener progressListener) { return progressListener == null ? is : new RequestProgressInputStream(is, progressListener); }
@Override protected void onEOF() { onNotifyBytesRead(); }
@Override protected void onNotifyBytesRead() { publishRequestBytesTransferred(getListener(), getUnnotifiedByteCount()); } }
@Override protected void onReset() { publishRequestReset(getListener(), getNotifiedByteCount()); }
/** * @param is the request content input stream * @param progressListener Optional progress listener * @return If the progress listener is non null returns a new input stream decorated with * progress reporting functionality. If progress listener is null it returns the same input * stream. */ @SdkInternalApi public static InputStream inputStreamForRequest(InputStream is, ProgressListener progressListener) { return progressListener == null ? is : new RequestProgressInputStream(is, progressListener); }