public class

ProgressMonitoringFileInputStream

extends FilterInputStream
java.lang.Object
   ↳ java.io.InputStream
     ↳ java.io.FilterInputStream
       ↳ com.atlassian.jira.task.ProgressMonitoringFileInputStream

Class Overview

A FileInputStream that can log progress when the inputstream is being read. The passed in task progress sink should have been provided with the overall file size to be read already to provide meaningful updates since the underlying inputstream implementation may not return the overall size of the data to be read reliably.

Summary

[Expand]
Inherited Fields
From class java.io.FilterInputStream
Public Constructors
ProgressMonitoringFileInputStream(InputStream in, TaskProgressSink taskProgressSink, String subTask, String message)
Public Methods
int read(byte[] b)
int read()
int read(byte[] b, int off, int len)
[Expand]
Inherited Methods
From class java.io.FilterInputStream
From class java.io.InputStream
From class java.lang.Object
From interface java.io.Closeable

Public Constructors

public ProgressMonitoringFileInputStream (InputStream in, TaskProgressSink taskProgressSink, String subTask, String message)

Public Methods

public int read (byte[] b)

Throws
IOException

public int read ()

Throws
IOException

public int read (byte[] b, int off, int len)

Throws
IOException