public static WrapSeekable < FSDataInputStream > openPath ( FileSystem fs , Path p ) throws IOException { return new WrapSeekable < FSDataInputStream > ( fs . open ( p ) , fs . getFileStatus ( p ) . getLen ( ) , p ) ; }
A helper for the common use case .