public final class ProviderHelper extends Object
Modifier and Type | Method and Description |
---|---|
static List<MediaType> |
getAvailableMediaTypes(String[] mediaTypes) |
static List<Variant> |
getAvailableVariants(List<MediaType> mediaTypes) |
static List<Variant> |
getAvailableVariants(String[] mediaTypes) |
static String |
readString(InputStream in) |
static String |
readString(InputStream in,
MediaType mediaType) |
static void |
writeTo(InputStream in,
OutputStream out) |
public static String readString(InputStream in) throws IOException
in
- IOException
public static String readString(InputStream in, MediaType mediaType) throws IOException
in
- IOException
public static List<MediaType> getAvailableMediaTypes(String[] mediaTypes)
mediaTypes
- public static List<Variant> getAvailableVariants(String[] mediaTypes)
mediaTypes
- public static List<Variant> getAvailableVariants(List<MediaType> mediaTypes)
mediaTypes
- public static void writeTo(InputStream in, OutputStream out) throws IOException
in
- out
- IOException
Copyright © 2016 JBoss by Red Hat. All rights reserved.