Class HttpServletEntityByteSequence
java.lang.Object
net.officefloor.server.http.servlet.HttpServletEntityByteSequence
- All Implemented Interfaces:
ByteSequence
ByteSequence for the HttpServletRequest entity.- Author:
- Daniel Sagenschneider
-
Field Summary
Fields inherited from interface net.officefloor.server.stream.impl.ByteSequence
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionHttpServletEntityByteSequence(jakarta.servlet.http.HttpServletRequest request) Instantiate. -
Method Summary
Modifier and TypeMethodDescriptionbytebyteAt(int index) Obtains thebyteat the index.intlength()Obtains the number ofbytevalues in theByteSequence.
-
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:ByteSequenceObtains thebyteat the index.- Specified by:
byteAtin interfaceByteSequence- Parameters:
index- Index of thebyte.- Returns:
byteat the index.
-
length
public int length()Description copied from interface:ByteSequenceObtains the number ofbytevalues in theByteSequence.- Specified by:
lengthin interfaceByteSequence- Returns:
- Number of
bytevalues in theByteSequence.
-