Java 8 UncheckedIOException - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 UncheckedIOException class.

This code example shows how to use the following methods:
 
    private void saveImage(String fileName, BufferedImage image) {
        try { 
            ImageIO.write(image, "png", new File(fileName));
        } catch (IOException ex) {
            throw new UncheckedIOException(ex);
        } 
    } 
 
    @FXML 
    void choosePicture(ActionEvent event) {
        Stage stage = new Stage();
        FileChooser fileChooser = new FileChooser();
        fileChooser.setTitle("画像を選択してください");
        File file = fileChooser.showOpenDialog(stage);
        try { 
            Files.copy(file, new File("tmp.png"));
        } catch (IOException ex) {
            throw new UncheckedIOException(ex);
        } 
3
CodeRank
This code example shows how to use the following methods:
See Code Examples for Java 8 UncheckedIOException Methods: