public class MagicComment
extends java.lang.Object
# -*- coding: utf-8; mode: java; tab-width: 4 -*-
Constructor and Description |
---|
MagicComment() |
Modifier and Type | Method and Description |
---|---|
static java.util.Map<java.lang.String,java.lang.String> |
parse(java.io.File file)
Extract the first line of the file and parse with
#parse(String) |
static java.util.Map<java.lang.String,java.lang.String> |
parse(java.lang.String str)
Parse magic comment
|
public static java.util.Map<java.lang.String,java.lang.String> parse(java.io.File file) throws java.io.IOException
#parse(String)
file
- java.io.IOException
public static java.util.Map<java.lang.String,java.lang.String> parse(java.lang.String str)
str
- input string.