Class SequenceFileMessageConverter

  • All Implemented Interfaces:
    org.springframework.http.converter.HttpMessageConverter<java.nio.file.Path>

    public class SequenceFileMessageConverter
    extends java.lang.Object
    implements org.springframework.http.converter.HttpMessageConverter<java.nio.file.Path>
    Message markdownConverter for converting application/fastq HTTP responses to a Java Path temporary file
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.util.List<org.springframework.http.MediaType> SUPPORTED_TYPES  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canRead​(java.lang.Class<?> clazz, org.springframework.http.MediaType mediaType)
      boolean canWrite​(java.lang.Class<?> clazz, org.springframework.http.MediaType mediaType)  
      java.util.List<org.springframework.http.MediaType> getSupportedMediaTypes()  
      java.nio.file.Path read​(java.lang.Class<? extends java.nio.file.Path> clazz, org.springframework.http.HttpInputMessage inputMessage)  
      void write​(java.nio.file.Path t, org.springframework.http.MediaType contentType, org.springframework.http.HttpOutputMessage outputMessage)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.springframework.http.converter.HttpMessageConverter

        getSupportedMediaTypes
    • Field Detail

      • SUPPORTED_TYPES

        public static final java.util.List<org.springframework.http.MediaType> SUPPORTED_TYPES
    • Constructor Detail

      • SequenceFileMessageConverter

        public SequenceFileMessageConverter​(java.lang.String fileName)
    • Method Detail

      • canRead

        public boolean canRead​(java.lang.Class<?> clazz,
                               org.springframework.http.MediaType mediaType)
        Specified by:
        canRead in interface org.springframework.http.converter.HttpMessageConverter<java.nio.file.Path>
      • canWrite

        public boolean canWrite​(java.lang.Class<?> clazz,
                                org.springframework.http.MediaType mediaType)
        Specified by:
        canWrite in interface org.springframework.http.converter.HttpMessageConverter<java.nio.file.Path>
      • getSupportedMediaTypes

        public java.util.List<org.springframework.http.MediaType> getSupportedMediaTypes()
        Specified by:
        getSupportedMediaTypes in interface org.springframework.http.converter.HttpMessageConverter<java.nio.file.Path>
      • read

        public java.nio.file.Path read​(java.lang.Class<? extends java.nio.file.Path> clazz,
                                       org.springframework.http.HttpInputMessage inputMessage)
                                throws java.io.IOException,
                                       org.springframework.http.converter.HttpMessageNotReadableException
        Specified by:
        read in interface org.springframework.http.converter.HttpMessageConverter<java.nio.file.Path>
        Throws:
        java.io.IOException
        org.springframework.http.converter.HttpMessageNotReadableException
      • write

        public void write​(java.nio.file.Path t,
                          org.springframework.http.MediaType contentType,
                          org.springframework.http.HttpOutputMessage outputMessage)
                   throws java.io.IOException,
                          org.springframework.http.converter.HttpMessageNotWritableException
        Specified by:
        write in interface org.springframework.http.converter.HttpMessageConverter<java.nio.file.Path>
        Throws:
        java.io.IOException
        org.springframework.http.converter.HttpMessageNotWritableException