java.lang.Object
org.refcodes.serial.SerialUtility
Functionality to be maintainable and common for the whole of the serial
package.
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.refcodes.io.TimeoutInputStream
createTimeoutInputStream
(InputStream aInputStream, long aTimeoutMillis) Hook creating aTimeoutInputStream
compliantInputStream
.
-
Method Details
-
createTimeoutInputStream
public static org.refcodes.io.TimeoutInputStream createTimeoutInputStream(InputStream aInputStream, long aTimeoutMillis) Hook creating aTimeoutInputStream
compliantInputStream
.- Parameters:
aInputStream
- TheInputStream
to be decorated with timeout functionality.aTimeoutMillis
- The timeout in milliseconds to apply.- Returns:
- The according
TimeoutInputStream
compliant InputStream,
-