public void load() throws IOException {
        URL url2 = new URL(url);
        int begin = url.lastIndexOf("/");
        if (begin == -1) {
            System.out.println("index of url = -1");
            return;
        }
        String name = url.substring(begin + 1, url.length());
        Path path = Paths.get("images\\" + name);
        ReadableByteChannel rbc = Channels.newChannel(url2.openStream());
        FileOutputStream fos = new FileOutputStream(path.toFile());
        fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
    }