Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    /**
     * Returns true if the given URL looks like it is from one of the web archives.
     * @param url
     * @return
     */
    public static boolean isArchiveUrl(String url) {
        return (url.startsWith("http://web.archive.org") || url.startsWith("http://api.wayback.archive")
                || url.startsWith("http://wayback.archive-it"));
    }
}