- java.lang.Object
-
- com.sun.tools.xjc.util.MimeTypeRange
-
public class MimeTypeRange extends Object
- Author:
- Kohsuke Kawaguchi
-
-
Constructor Summary
Constructors Constructor Description MimeTypeRange(String s)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(String[] args)
static MimeTypeRange
merge(Collection<MimeTypeRange> types)
Creates a range by merging all the given types.static List<MimeTypeRange>
parseRanges(String s)
jakarta.activation.MimeType
toMimeType()
String
toString()
-
-
-
Field Detail
-
majorType
public final String majorType
-
subType
public final String subType
-
q
public final float q
Each media-range MAY be followed by one or more accept-params, beginning with the "q" parameter for indicating a relative quality factor. The first "q" parameter (if any) separates the media-range parameter(s) from the accept-params. Quality factors allow the user or user agent to indicate the relative degree of preference for that media-range, using the qvalue scale from 0 to 1 (section 3.9). The default value is q=1.
-
ALL
public static final MimeTypeRange ALL
-
-
Constructor Detail
-
MimeTypeRange
public MimeTypeRange(String s) throws ParseException
- Throws:
ParseException
-
-
Method Detail
-
parseRanges
public static List<MimeTypeRange> parseRanges(String s) throws ParseException
- Throws:
ParseException
-
toMimeType
public jakarta.activation.MimeType toMimeType() throws jakarta.activation.MimeTypeParseException
- Throws:
jakarta.activation.MimeTypeParseException
-
merge
public static MimeTypeRange merge(Collection<MimeTypeRange> types)
Creates a range by merging all the given types.
-
main
public static void main(String[] args) throws ParseException
- Throws:
ParseException
-
-