com.netflix.discovery.provider
Interface ISerializer

All Known Implementing Classes:
EntityBodyConverter

public interface ISerializer

A contract for dispatching to a custom serialization/de-serialization mechanism from jersey.


Method Summary
 java.lang.Object read(java.io.InputStream is, java.lang.Class type, javax.ws.rs.core.MediaType mediaType)
           
 void write(java.lang.Object object, java.io.OutputStream os, javax.ws.rs.core.MediaType mediaType)
           
 

Method Detail

read

java.lang.Object read(java.io.InputStream is,
                      java.lang.Class type,
                      javax.ws.rs.core.MediaType mediaType)
                      throws java.io.IOException
Throws:
java.io.IOException

write

void write(java.lang.Object object,
           java.io.OutputStream os,
           javax.ws.rs.core.MediaType mediaType)
           throws java.io.IOException
Throws:
java.io.IOException