Interface ByteWriter

  • All Known Implementing Classes:
    ServletResponseWrapperInclude.PrintWriterWrapper

    public interface ByteWriter
    This interface defines additional functionalities a web container can provide for the response writer. If implementated, perfermance will likely to be improved.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void write​(byte[] buff, int off, int len)
      Write a portion of a byte array to the output.
    • Method Detail

      • write

        void write​(byte[] buff,
                   int off,
                   int len)
            throws java.io.IOException
        Write a portion of a byte array to the output.
        Parameters:
        buff - A byte array
        off - Offset from which to start reading byte
        len - Number of bytes to write
        Throws:
        java.io.IOException