Class DateClientReaderWriter

java.lang.Object
ee.jakarta.tck.ws.rs.ee.rs.core.responsebuilder.DateClientReaderWriter
All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyReader<Date>, jakarta.ws.rs.ext.MessageBodyWriter<Date>

@Provider public class DateClientReaderWriter extends Object implements jakarta.ws.rs.ext.MessageBodyReader<Date>, jakarta.ws.rs.ext.MessageBodyWriter<Date>
  • Constructor Details

    • DateClientReaderWriter

      public DateClientReaderWriter(StringBuilder atom)
  • Method Details

    • getSize

      public long getSize(Date arg0, Class<?> arg1, Type arg2, Annotation[] arg3, jakarta.ws.rs.core.MediaType arg4)
      Specified by:
      getSize in interface jakarta.ws.rs.ext.MessageBodyWriter<Date>
    • isWriteable

      public boolean isWriteable(Class<?> arg0, Type arg1, Annotation[] arg2, jakarta.ws.rs.core.MediaType arg3)
      Specified by:
      isWriteable in interface jakarta.ws.rs.ext.MessageBodyWriter<Date>
    • writeTo

      public void writeTo(Date date, Class<?> arg1, Type arg2, Annotation[] arg3, jakarta.ws.rs.core.MediaType arg4, jakarta.ws.rs.core.MultivaluedMap<String,Object> arg5, OutputStream stream) throws IOException, jakarta.ws.rs.WebApplicationException
      Specified by:
      writeTo in interface jakarta.ws.rs.ext.MessageBodyWriter<Date>
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException
    • isReadable

      public boolean isReadable(Class<?> arg0, Type arg1, Annotation[] arg2, jakarta.ws.rs.core.MediaType arg3)
      Specified by:
      isReadable in interface jakarta.ws.rs.ext.MessageBodyReader<Date>
    • readFrom

      public Date readFrom(Class<Date> arg0, Type arg1, Annotation[] arg2, jakarta.ws.rs.core.MediaType arg3, jakarta.ws.rs.core.MultivaluedMap<String,String> arg4, InputStream arg5) throws IOException, jakarta.ws.rs.WebApplicationException
      Specified by:
      readFrom in interface jakarta.ws.rs.ext.MessageBodyReader<Date>
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException
    • dateToString

      public static final String dateToString(Date date)