| |
|
| java.lang.Object java.lang.Throwable java.lang.Exception java.io.IOException org.apache.commons.net.io.CopyStreamException
CopyStreamException | public class CopyStreamException extends IOException (Code) | | 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 Also: Util author: Daniel F. Savarese version: $Id: CopyStreamException.java 165675 2005-05-02 20:09:55Z rwinston $ |
Method Summary | |
public IOException | getIOException() Returns the IOException responsible for the failure of a copy operation. | public long | getTotalBytesTransferred() Returns the total number of bytes confirmed to have
been transferred by a failed copy operation. |
CopyStreamException | public CopyStreamException(String message, long bytesTransferred, IOException exception)(Code) | | Creates a new CopyStreamException instance.
Parameters: message - A message describing the error. Parameters: bytesTransferred - The total number of bytes transferred beforean exception was thrown in a copy operation. Parameters: exception - The IOException thrown during a copy operation. |
getIOException | public IOException getIOException()(Code) | | Returns the IOException responsible for the failure of a copy operation.
The IOException responsible for the failure of a copy operation. |
getTotalBytesTransferred | public long getTotalBytesTransferred()(Code) | | Returns the total number of bytes confirmed to have
been transferred by a failed copy operation.
The total number of bytes confirmed to havebeen transferred by a failed copy operation. |
|
|
|