Code example for FileNotFoundException

0
   */ 
  public static FileInputStream getMetaDataInputStream(
      ExtendedBlock b, FsDatasetSpi<?> data) throws IOException {
    final LengthInputStream lin = data.getMetaDataInputStream(b);
    if (lin == null) {
      throw new FileNotFoundException("Meta file for " + b + " not found.");
    } 
    return (FileInputStream)lin.getWrappedStream();
  } 
} 
Connect your IDE to all the code out there  Get Codota for Java