ORO, Inc. Logo  All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.oroinc.io.CopyStreamException

java.lang.Object
   |
   +----java.lang.Throwable
           |
           +----java.lang.Exception
                   |
                   +----java.io.IOException
                           |
                           +----com.oroinc.io.CopyStreamException

public class CopyStreamException
extends IOException
The CopyStreamException class is thrown by the com.oroinc.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.

Copyright © 1997 Original Reusable Objects, Inc. All rights reserved.

See Also:
Util

Constructor Index

 o CopyStreamException(String, long, IOException)
Creates a new CopyStreamException instance.

Method Index

 o getIOException()
Returns the IOException responsible for the failure of a copy operation.
 o getTotalBytesTransferred()
Returns the total number of bytes confirmed to have been transferred by a failed copy operation.

Constructors

 o CopyStreamException
 public CopyStreamException(String message,
                            long bytesTransferred,
                            IOException exception)
Creates a new CopyStreamException instance.

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

Methods

 o getTotalBytesTransferred
 public long getTotalBytesTransferred()
Returns the total number of bytes confirmed to have been transferred by a failed copy operation.

Returns:
The total number of bytes confirmed to have been transferred by a failed copy operation.
 o getIOException
 public IOException getIOException()
Returns the IOException responsible for the failure of a copy operation.

Returns:
The IOException responsible for the failure of a copy operation.

ORO, Inc. Logo  All Packages  Class Hierarchy  This Package  Previous  Next  Index