Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Main {
    private static final Pattern CONTENT_DISPOSITION_PATTERN = Pattern
            .compile("attachment;\\s*filename\\s*=\\s*\"([^\"]*)\"");

    private static String parseContentDisposition(String paramString) {
        try {
            Matcher localMatcher = CONTENT_DISPOSITION_PATTERN.matcher(paramString);
            if (localMatcher.find()) {
                String str = localMatcher.group(1);
                return str;
            }
        } catch (IllegalStateException localIllegalStateException) {
        }
        return null;
    }
}