Package org.apache.commons.io.input
Class Input
- java.lang.Object
-
- org.apache.commons.io.input.Input
-
final class Input extends java.lang.ObjectPackage-wide internals for input.
-
-
Constructor Summary
Constructors Constructor Description Input()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static voidcheckOpen(boolean isOpen)Throws anIOExceptionon false input.(package private) static java.io.InterruptedIOExceptiontoInterruptedIOException(java.lang.InterruptedException e)Converts anInterruptedExceptionto anInterruptedIOException.
-
-
-
Method Detail
-
checkOpen
static void checkOpen(boolean isOpen) throws java.io.IOExceptionThrows anIOExceptionon false input.- Parameters:
isOpen- whether an input is open or not.- Throws:
java.io.IOException- ifisOpenis false indicating an input is closed.
-
toInterruptedIOException
static java.io.InterruptedIOException toInterruptedIOException(java.lang.InterruptedException e)
Converts anInterruptedExceptionto anInterruptedIOException.The cause of the returned InterruptedIOException is set to the original.
- Parameters:
e- The InterruptedException to convert.- Returns:
- The converted InterruptedIOException.
- See Also:
InterruptedIOException,Throwable.initCause(Throwable),Throwable.getCause()
-
-