public static InputStream get ( IO . Readable io , boolean closeAsync ) { if ( io instanceof IOFromInputStream ) return ( ( IOFromInputStream ) io ) . getInputStream ( ) ; if ( io instanceof IO . Readable . Buffered ) return new BufferedToInputStream ( ( IO . Readable . Buffered ) io , closeAsync ) ; return new IOAsInputStream ( io ) ; }
Get an instance for the given IO .