org.trialox.jaxrs.providers.provided
Class StringMessageBodyWriter

java.lang.Object
  extended by org.trialox.jaxrs.providers.provided.StringMessageBodyWriter
All Implemented Interfaces:
java.lang.Comparable, javax.ws.rs.ext.MessageBodyWriter<java.lang.String>

public final class StringMessageBodyWriter
extends java.lang.Object
implements javax.ws.rs.ext.MessageBodyWriter<java.lang.String>, java.lang.Comparable

message body writer for string

Author:
szalay

Constructor Summary
StringMessageBodyWriter()
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 long getSize(java.lang.String string)
           
 boolean isWriteable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations)
           
 java.lang.String toString()
           
 void writeTo(java.lang.String value, 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 out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringMessageBodyWriter

public StringMessageBodyWriter()
Method Detail

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

getSize

public long getSize(java.lang.String string)
Specified by:
getSize in interface javax.ws.rs.ext.MessageBodyWriter<java.lang.String>

isWriteable

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

writeTo

public void writeTo(java.lang.String value,
                    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 out)
             throws java.io.IOException,
                    javax.ws.rs.WebApplicationException
Specified by:
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<java.lang.String>
Throws:
java.io.IOException
javax.ws.rs.WebApplicationException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2008. All Rights Reserved.