FileDocCategorySizeDatePackage
CopyStreamException.javaAPI DocApache Commons NET 1.4.1 API2456Sat Dec 03 10:05:48 GMT 2005org.apache.commons.net.io

CopyStreamException

public class CopyStreamException extends IOException
The CopyStreamException class is thrown by the org.apache.commons.io.Util copyStream() methods. It stores the number of bytes confirmed to have been transferred before an I/O error as well as the IOException responsible for the failure of a copy operation.
see
Util
author
Daniel F. Savarese
version
$Id: CopyStreamException.java 165675 2005-05-02 20:09:55Z rwinston $

Fields Summary
private long
totalBytesTransferred
private IOException
ioException
Constructors Summary
public CopyStreamException(String message, long bytesTransferred, IOException exception)
Creates a new CopyStreamException instance.

param
message A message describing the error.
param
bytesTransferred The total number of bytes transferred before an exception was thrown in a copy operation.
param
exception The IOException thrown during a copy operation.

        super(message);
        totalBytesTransferred = bytesTransferred;
        ioException = exception;
    
Methods Summary
public java.io.IOExceptiongetIOException()
Returns the IOException responsible for the failure of a copy operation.

return
The IOException responsible for the failure of a copy operation.

        return ioException;
    
public longgetTotalBytesTransferred()
Returns the total number of bytes confirmed to have been transferred by a failed copy operation.

return
The total number of bytes confirmed to have been transferred by a failed copy operation.

        return totalBytesTransferred;