Code example for FileNotFoundException

0
          throws FileNotFoundException {
    String path = decoder.path();
    if (path.startsWith("/webhdfs/v1/")) {
      return path.substring(11);
    } else { 
      throw new FileNotFoundException("Path: " + path + " should " +
              "start with \"/webhdfs/v1/\""); 
    } 
  } 
}