Class SamEntityByteSequence

java.lang.Object
net.officefloor.server.aws.sam.SamEntityByteSequence
All Implemented Interfaces:
ByteSequence

public class SamEntityByteSequence extends Object implements ByteSequence
ByteSequence for the AWS SAM entity.
Author:
Daniel Sagenschneider
  • Constructor Details

    • SamEntityByteSequence

      public SamEntityByteSequence(String entity, boolean isBase64Encoded)
      Instantiate.
      Parameters:
      entity - Entity.
      isBase64Encoded - Indicates if entity is Base64 encoded.
  • 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.