Class NewLineSanitizerInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class NewLineSanitizerInputStream
    extends java.io.InputStream
    This class is a workaround to fix content that is crafted not following the RFC 1341 for multipart requests. It needs to stay in place until SCPI is able to send compliant content using CRLF instead of LF only for blank lines between the HTTP headers and the payload. https://www.w3.org/Protocols/rfc1341/7_2_Multipart.html
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int read()  
      • Methods inherited from class java.io.InputStream

        available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NewLineSanitizerInputStream

        public NewLineSanitizerInputStream​(java.io.InputStream is)
    • Method Detail

      • read

        public int read()
                 throws java.io.IOException
        Specified by:
        read in class java.io.InputStream
        Throws:
        java.io.IOException