1 16 package org.apache.commons.net.io; 17 18 import java.util.EventObject ; 19 20 33 public class CopyStreamEvent extends EventObject 34 { 35 38 public static final long UNKNOWN_STREAM_SIZE = -1; 39 40 private int bytesTransferred; 41 private long totalBytesTransferred; 42 private long streamSize; 43 44 55 public CopyStreamEvent(Object source, long totalBytesTransferred, 56 int bytesTransferred, long streamSize) 57 { 58 super(source); 59 this.bytesTransferred = bytesTransferred; 60 this.totalBytesTransferred = totalBytesTransferred; 61 this.streamSize = streamSize; 62 } 63 64 70 public int getBytesTransferred() 71 { 72 return bytesTransferred; 73 } 74 75 81 public long getTotalBytesTransferred() 82 { 83 return totalBytesTransferred; 84 } 85 86 92 public long getStreamSize() 93 { 94 return streamSize; 95 } 96 } 97 | Popular Tags |