|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.io.IOException
|
+--com.oroinc.io.CopyStreamException
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.
Util,
Serialized Form| Constructor Summary | |
|---|---|
CopyStreamException(java.lang.String message,
long bytesTransferred,
java.io.IOException exception)
Creates a new CopyStreamException instance. |
|
| Method Summary | |
|---|---|
java.io.IOException |
getIOException()
Returns the IOException responsible for the failure of a copy operation. |
long |
getTotalBytesTransferred()
Returns the total number of bytes confirmed to have been transferred by a failed copy operation. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CopyStreamException(java.lang.String message,
long bytesTransferred,
java.io.IOException exception)
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.| Method Detail |
public long getTotalBytesTransferred()
public java.io.IOException getIOException()
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||