Class ByteArrayByteSequence
- java.lang.Object
 - 
- net.officefloor.server.stream.impl.ByteArrayByteSequence
 
 
- 
- All Implemented Interfaces:
 java.io.Serializable,ByteSequence
public class ByteArrayByteSequence extends java.lang.Object implements ByteSequence, java.io.Serializable
bytearrayByteSequence.- Author:
 - Daniel Sagenschneider
 - See Also:
 - Serialized Form
 
 
- 
- 
Field Summary
- 
Fields inherited from interface net.officefloor.server.stream.impl.ByteSequence
EMPTY 
 - 
 
- 
Constructor Summary
Constructors Constructor Description ByteArrayByteSequence(byte[] bytes)Instantiate. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description bytebyteAt(int index)Obtains thebyteat the index.intlength()Obtains the number ofbytevalues in theByteSequence. 
 - 
 
- 
- 
Constructor Detail
- 
ByteArrayByteSequence
public ByteArrayByteSequence(byte[] bytes)
Instantiate.- Parameters:
 bytes- Bytes backing thisByteSequence.
 
 - 
 
- 
Method Detail
- 
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. 
 
 - 
 
 -