Class ProviderHelper
java.lang.Object
org.jboss.resteasy.plugins.providers.ProviderHelper
A utility class to provide supporting functionality to various
entity providers.
- Version:
- $Revision: $
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<javax.ws.rs.core.MediaType> getAvailableMediaTypes(String[] mediaTypes) static List<javax.ws.rs.core.Variant> getAvailableVariants(String[] mediaTypes) static List<javax.ws.rs.core.Variant> getAvailableVariants(List<javax.ws.rs.core.MediaType> mediaTypes) static Stringstatic StringreadString(InputStream in, javax.ws.rs.core.MediaType mediaType) static voidwriteTo(InputStream in, OutputStream out)
-
Constructor Details
-
ProviderHelper
private ProviderHelper()
-
-
Method Details
-
readString
- Parameters:
in-- Returns:
- Throws:
IOException
-
readString
public static String readString(InputStream in, javax.ws.rs.core.MediaType mediaType) throws IOException - Parameters:
in-- Returns:
- Throws:
IOException
-
getAvailableMediaTypes
-
getAvailableVariants
-
getAvailableVariants
-
writeTo
- Parameters:
in-out-- Throws:
IOException
-