| Modifier and Type | Field and Description |
|---|---|
| private static final String[] | |
| private static final String[] | |
| private static final String | |
| private static final Pattern |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | probeContentType(Path
the path to the file to probe path)Implements abstract java. Probes the given file to guess its content type. |
| KNOWN_RUBY_FILES | back to summary |
|---|---|
| private static final String[] KNOWN_RUBY_FILES | |
| KNOWN_RUBY_SUFFIXES | back to summary |
|---|---|
| private static final String[] KNOWN_RUBY_SUFFIXES | |
| RUBY_MIME | back to summary |
|---|---|
| private static final String RUBY_MIME | |
| SHEBANG_REGEXP | back to summary |
|---|---|
| private static final Pattern SHEBANG_REGEXP | |
| RubyFileTypeDetector | back to summary |
|---|---|
| public RubyFileTypeDetector() | |
| probeContentType | back to summary |
|---|---|
| public String probeContentType(Path path) throws IOException Implements abstract java. Doc from java. Probes the given file to guess its content type. The means by which this method determines the file type is highly implementation specific. It may simply examine the file name, it may use a file attribute, or it may examine bytes in the file. The probe result is the string form of the value of a Multipurpose Internet Mail Extension (MIME) content type as defined by RFC 2045: Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies. The string must be parsable according to the grammar in the RFC 2045.
| |