ariba.util.core
Class SimpleComponentChecksum

java.lang.Object
  extended by ariba.util.core.ComponentChecksum
      extended by ariba.util.core.SimpleComponentChecksum
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
VersionComponentChecksum

public class SimpleComponentChecksum
extends ComponentChecksum

A simple implementation of ComponentChecksum that saves a stored byte array. We use this instance when we have to store a serialized version of the checksum

See Also:
Serialized Form

Constructor Summary
SimpleComponentChecksum()
           
SimpleComponentChecksum(ComponentChecksum cs)
          create a SimpleComponentChecksum based on another checsum.
SimpleComponentChecksum(java.lang.String name, byte[] cs)
          Create the checksum based on the byte array passed in
 
Method Summary
 byte[] getChecksum()
          get the checksum.
 
Methods inherited from class ariba.util.core.ComponentChecksum
compareChecksum, getName, makeListOfBytes, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleComponentChecksum

public SimpleComponentChecksum(java.lang.String name,
                               byte[] cs)
Create the checksum based on the byte array passed in

Parameters:
name - The component name
cs - The checksum to be saved

SimpleComponentChecksum

public SimpleComponentChecksum(ComponentChecksum cs)
create a SimpleComponentChecksum based on another checsum. This saves a pointer to the original checksum's checksum. This is used to create a serializable version of a ComponentChecksum that might contain non-serializable objects (e.g. FileComponentChecksum)

Parameters:
cs - The ComponentChecksum to copy

SimpleComponentChecksum

public SimpleComponentChecksum()
Method Detail

getChecksum

public byte[] getChecksum()
get the checksum. The array returned is read only

Specified by:
getChecksum in class ComponentChecksum
Returns:
the component's checksum as a byte array


AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.