org.jboss.resteasy.plugins.providers
Class ProviderHelper

java.lang.Object
  extended by org.jboss.resteasy.plugins.providers.ProviderHelper

public final class ProviderHelper
extends java.lang.Object

A utility class to provide supporting functionality to various entity providers.

Version:
$Revision: $
Author:
Method Summary
static java.util.List<MediaType> getAvailableMediaTypes(java.lang.String[] mediaTypes)
           
static java.util.List<Variant> getAvailableVariants(java.util.List<MediaType> mediaTypes)
           
static java.util.List<Variant> getAvailableVariants(java.lang.String[] mediaTypes)
           
static java.lang.String readString(java.io.InputStream in)
           
static java.lang.String readString(java.io.InputStream in, MediaType mediaType)
           
static void writeTo(java.io.InputStream in, java.io.OutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

readString

public static java.lang.String readString(java.io.InputStream in)
                                   throws java.io.IOException
Parameters:
in -
Returns:
Throws:
java.io.IOException

readString

public static java.lang.String readString(java.io.InputStream in,
                                          MediaType mediaType)
                                   throws java.io.IOException
Parameters:
in -
Returns:
Throws:
java.io.IOException

getAvailableMediaTypes

public static java.util.List<MediaType> getAvailableMediaTypes(java.lang.String[] mediaTypes)
Parameters:
mediaTypes -
Returns:

getAvailableVariants

public static java.util.List<Variant> getAvailableVariants(java.lang.String[] mediaTypes)
Parameters:
mediaTypes -
Returns:

getAvailableVariants

public static java.util.List<Variant> getAvailableVariants(java.util.List<MediaType> mediaTypes)
Parameters:
mediaTypes -
Returns:

writeTo

public static void writeTo(java.io.InputStream in,
                           java.io.OutputStream out)
                    throws java.io.IOException
Parameters:
in -
out -
Throws:
java.io.IOException


Copyright © 2010. All Rights Reserved.