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
- input streamIOException
- if I/O error occurredpublic static String readString(InputStream in, MediaType mediaType) throws IOException
in
- input streammediaType
- media typeIOException
- if I/O error occurredpublic static List<MediaType> getAvailableMediaTypes(String[] mediaTypes)
mediaTypes
- string array of media typespublic static List<Variant> getAvailableVariants(String[] mediaTypes)
mediaTypes
- string array of media typesVariant
public static List<Variant> getAvailableVariants(List<MediaType> mediaTypes)
mediaTypes
- list of media typesVariant
public static void writeTo(InputStream in, OutputStream out) throws IOException
in
- input streamout
- output streamIOException
- if I/O error occurredCopyright © 2019 JBoss by Red Hat. All rights reserved.