| Package | Description |
|---|---|
| org.osgl.util |
| Modifier and Type | Method and Description |
|---|---|
static MimeType.Trait |
MimeType.Trait.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MimeType.Trait[] |
MimeType.Trait.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static List<MimeType> |
MimeType.filterByTrait(MimeType.Trait trait)
Get a list of
MimeType with each item contains the trait specified. |
boolean |
MimeType.hasTrait(MimeType.Trait trait)
Check if this
MimeType has the trait specified. |
static void |
IO.registerInputStreamHandler(MimeType.Trait trait,
IO.InputStreamHandler handler)
|
static void |
MimeType.registerMimeType(String name,
String contentType,
MimeType.Trait... traits)
Register an new MimeType with name, contentType and traits.
|
boolean |
MimeType.test(MimeType.Trait trait)
Deprecated.
|
Copyright © 2014–2021 OSGL (Open Source General Library). All rights reserved.