Class StringMarshaller

java.lang.Object
com.tangosol.coherence.rest.io.StringMarshaller
All Implemented Interfaces:
Marshaller<String>

public class StringMarshaller extends Object implements Marshaller<String>
Marshaller that marshalls String object.
Since:
Coherence 12.2.1.0.1
Author:
lh 2015.11.19
  • Constructor Details

    • StringMarshaller

      public StringMarshaller()
  • Method Details

    • marshal

      public void marshal(String oValue, OutputStream out, jakarta.ws.rs.core.MultivaluedMap<String,Object> httpHeaders) throws IOException
      Description copied from interface: Marshaller
      Write the specified object into the given stream.
      Specified by:
      marshal in interface Marshaller<String>
      Parameters:
      oValue - object to marshall
      out - the OutputStream for the HTTP entity. The implementation should not close the output stream.
      httpHeaders - a mutable map of the HTTP message headers.
      Throws:
      IOException - if an error occurs during marshalling
    • unmarshal

      public String unmarshal(InputStream in, jakarta.ws.rs.core.MediaType mediaType) throws IOException
      Description copied from interface: Marshaller
      Read an object from the specified stream.
      Specified by:
      unmarshal in interface Marshaller<String>
      Parameters:
      in - stream to read from
      mediaType - the media type of the object to read
      Returns:
      unmarshalled object instance
      Throws:
      IOException - if an error occurs during unmarshalling