org.opensaml.artifact
Interface ByteSizedSequence

All Known Subinterfaces:
Artifact, Artifact.RemainingArtifact, Artifact.TypeCode
All Known Implementing Classes:
SAMLArtifact, SAMLArtifact.RemainingArtifact, SAMLArtifact.TypeCode, SAMLArtifactType0001, SAMLArtifactType0001.RemainingArtifact, SAMLArtifactType0002, SAMLArtifactType0002.RemainingArtifact, TwoByteSequence

public interface ByteSizedSequence

A ByteSizedSequence is an arbitrary sequence of bytes. The implementation determines the size of the sequence.

Author:
Tom Scavo

Method Summary
 boolean equals(Object o)
          Equate two sequences of bytes.
 byte[] getBytes()
          Get the actual bytes of this sequence of bytes.
 int hashCode()
          Compute the hashcode of this sequences of bytes.
 int size()
          Get the size of this sequence of bytes.
 String toString()
          Get a string representation of this sequence of bytes.
 

Method Detail

size

int size()
Get the size of this sequence of bytes.

Returns:
the size of the sequence

getBytes

byte[] getBytes()
Get the actual bytes of this sequence of bytes.

Returns:
the actual sequence of bytes

toString

String toString()
Get a string representation of this sequence of bytes. This method overrides the corresponding method of the superclass.

Overrides:
toString in class Object
Returns:
a string representation of this sequence of bytes

equals

boolean equals(Object o)
Equate two sequences of bytes.

Overrides:
equals in class Object
Returns:
true if and only if this sequence of bytes is equivalent to the given object

hashCode

int hashCode()
Compute the hashcode of this sequences of bytes.

Overrides:
hashCode in class Object
Returns:
the hashcode


Copyright ? 2005 UCAID. All Rights Reserved.