Class HttpServletEntityByteSequence

  • All Implemented Interfaces:
    ByteSequence

    public class HttpServletEntityByteSequence
    extends java.lang.Object
    implements ByteSequence
    ByteSequence for the HttpServletRequest entity.
    Author:
    Daniel Sagenschneider
    • Field Summary

    • Constructor Summary

      Constructors 
      Constructor Description
      HttpServletEntityByteSequence​(javax.servlet.http.HttpServletRequest request)
      Instantiate.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte byteAt​(int index)
      Obtains the byte at the index.
      int length()
      Obtains the number of byte values in the ByteSequence.
      • Methods inherited from class java.lang.Object

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

      • HttpServletEntityByteSequence

        public HttpServletEntityByteSequence​(javax.servlet.http.HttpServletRequest request)
                                      throws java.io.IOException
        Instantiate.
        Parameters:
        request - HttpServletRequest.
        Throws:
        java.io.IOException - If fails to ready request entity.
    • Method Detail

      • 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.