Package org.apache.clerezza.triaxrs.util

Examples of org.apache.clerezza.triaxrs.util.StreamDataSource


  @Override
  public T readFrom(Class<T> type, Type genericType,
      Annotation[] annotations, MediaType mediaType,
      MultivaluedMap<String, String> httpHeaders, InputStream entityStream)
      throws IOException, WebApplicationException {
    DataSource dataSource = new StreamDataSource(entityStream, mediaType
        .toString());
    DataHandler dataHandler = new DataHandler(dataSource);
    try {
      Object content = dataHandler.getContent();
      if (content.getClass().isAssignableFrom(type)) {
View Full Code Here

TOP

Related Classes of org.apache.clerezza.triaxrs.util.StreamDataSource

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.