eu.europa.tmsearch.services.resources.BodyWriters
Class TradeMarkImageBodyWriterImpl

java.lang.Object
  extended by eu.europa.tmsearch.services.resources.BodyWriters.TradeMarkImageBodyWriterImpl
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<TradeMarkImage>

@Provider
public class TradeMarkImageBodyWriterImpl
extends java.lang.Object
implements javax.ws.rs.ext.MessageBodyWriter<TradeMarkImage>


Constructor Summary
TradeMarkImageBodyWriterImpl()
           
 
Method Summary
 long getSize(TradeMarkImage tradeMarkImage, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
           
 boolean isWriteable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
           
 void writeTo(TradeMarkImage image, java.lang.Class<?> arg1, java.lang.reflect.Type arg2, java.lang.annotation.Annotation[] arg3, javax.ws.rs.core.MediaType arg4, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> arg5, java.io.OutputStream outputStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TradeMarkImageBodyWriterImpl

public TradeMarkImageBodyWriterImpl()
Method Detail

getSize

public long getSize(TradeMarkImage tradeMarkImage,
                    java.lang.Class<?> type,
                    java.lang.reflect.Type genericType,
                    java.lang.annotation.Annotation[] annotations,
                    javax.ws.rs.core.MediaType mediaType)
Specified by:
getSize in interface javax.ws.rs.ext.MessageBodyWriter<TradeMarkImage>

isWriteable

public boolean isWriteable(java.lang.Class<?> type,
                           java.lang.reflect.Type genericType,
                           java.lang.annotation.Annotation[] annotations,
                           javax.ws.rs.core.MediaType mediaType)
Specified by:
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<TradeMarkImage>

writeTo

public void writeTo(TradeMarkImage image,
                    java.lang.Class<?> arg1,
                    java.lang.reflect.Type arg2,
                    java.lang.annotation.Annotation[] arg3,
                    javax.ws.rs.core.MediaType arg4,
                    javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> arg5,
                    java.io.OutputStream outputStream)
             throws java.io.IOException,
                    javax.ws.rs.WebApplicationException
Specified by:
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<TradeMarkImage>
Throws:
java.io.IOException
javax.ws.rs.WebApplicationException


Copyright © 2009. All Rights Reserved.