Class ByteArrayServletOutputStream

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

    public class ByteArrayServletOutputStream
    extends ServletOutputStream
    Class that extends ServletOutputStream, used as a wrapper from within SsiInclude
    Bip Thelin
    See Also:
    and ByteArrayOutputStream
    • Field Detail

      • buf

        protected final buf
        Our buffer to hold the stream.
    • Constructor Detail

      • ByteArrayServletOutputStream

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

      • toByteArray

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

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

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