Package net.officefloor.server.aws.sam
Class SamEntityByteSequence
java.lang.Object
net.officefloor.server.aws.sam.SamEntityByteSequence
- All Implemented Interfaces:
ByteSequence
ByteSequence for the AWS SAM entity.- Author:
- Daniel Sagenschneider
-
Field Summary
Fields inherited from interface net.officefloor.server.stream.impl.ByteSequence
EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbytebyteAt(int index) Obtains thebyteat the index.intlength()Obtains the number ofbytevalues in theByteSequence.
-
Constructor Details
-
SamEntityByteSequence
Instantiate.- Parameters:
entity- Entity.isBase64Encoded- Indicates if entity is Base64 encoded.
-
-
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.
-