-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update documentation, site links, README.
- Loading branch information
Showing
5 changed files
with
72 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
|
||
## mime2045 | ||
|
||
The `mime2045` package provides functions for parsing RFC 2045 MIME types. | ||
|
||
## Features | ||
|
||
* RFC 2045 MIME type parsing. | ||
* High coverage test suite. | ||
* [OSGi-ready](https://www.osgi.org/). | ||
* [JPMS-ready](https://en.wikipedia.org/wiki/Java_Platform_Module_System). | ||
* ISC license. | ||
|
||
## Usage | ||
|
||
Declare MIME types directly: | ||
|
||
``` | ||
final var textPlain = | ||
MimeType.of("text", "plain"); | ||
``` | ||
|
||
Parse MIME type strings: | ||
|
||
``` | ||
final var parsed = | ||
new MimeParsers().parse("text/plain"); | ||
|
||
assert textPlain.equals(parsed); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters