Class HttpServletEntityByteSequence

java.lang.Object
net.officefloor.server.http.servlet.HttpServletEntityByteSequence
All Implemented Interfaces:
ByteSequence

public class HttpServletEntityByteSequence extends Object implements ByteSequence
ByteSequence for the HttpServletRequest entity.
Author:
Daniel Sagenschneider
  • Constructor Details

    • HttpServletEntityByteSequence

      public HttpServletEntityByteSequence(jakarta.servlet.http.HttpServletRequest request) throws IOException
      Instantiate.
      Parameters:
      request - HttpServletRequest.
      Throws:
      IOException - If fails to ready request entity.
  • Method Details

    • byteAt

      public byte byteAt(int index)
      Description copied from interface: ByteSequence
      Obtains the byte at the index.
      Specified by:
      byteAt in interface ByteSequence
      Parameters:
      index - Index of the byte.
      Returns:
      byte at the index.
    • length

      public int length()
      Description copied from interface: ByteSequence
      Obtains the number of byte values in the ByteSequence.
      Specified by:
      length in interface ByteSequence
      Returns:
      Number of byte values in the ByteSequence.