org.apache.geronimo.kernel.repository
Interface FileWriteMonitor


public interface FileWriteMonitor

An interface for getting notifications on the progress of file writes.


Method Summary
 void writeComplete(int bytes)
          Indicates that the write completed with the specified number of total bytes.
 void writeProgress(int bytes)
          The running count of bytes written.
 void writeStarted(String fileDescription, int fileSize)
           
 

Method Detail

writeStarted

void writeStarted(String fileDescription,
                  int fileSize)
Parameters:
fileSize - If it's known ahead of time, this is the total size of the file to be written. This would typically be the case for a copy operation, for example, but not necessarily for a download. If the file size is not known, this will be set to a negative number.

writeProgress

void writeProgress(int bytes)
The running count of bytes written.


writeComplete

void writeComplete(int bytes)
Indicates that the write completed with the specified number of total bytes.



Copyright © 2006 Apache Software Foundation. All Rights Reserved.