Class ByteArrayServletOutputStream

    • Constructor Detail

      • ByteArrayServletOutputStream

        public ByteArrayServletOutputStream()
        Construct a new ServletOutputStream.
    • Method Detail

      • toByteArray

        public byte[] toByteArray()
        Returns:
        the byte array.
      • write

        public void write​(int b)
        Write to our buffer.
        Specified by:
        write in class OutputStream
        Parameters:
        b - The parameter to write
      • isReady

        public boolean isReady()
        TODO SERVLET 3.1
        Specified by:
        isReady in class ServletOutputStream
        Returns:
        true if data can be written, else false