Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Open Source License 

public class Main {
    private final static String VALID_MIMETYPE = "audio/.*" + "|" + "video/.*" + "|" + "application/ogg";

    public static boolean enclosureTypeValid(String type) {
        if (type == null) {
            return false;
        } else {
            return type.matches(VALID_MIMETYPE);
        }
    }
}