ariba.util.core
Class SimpleComponentChecksum
java.lang.Object
ariba.util.core.ComponentChecksum
ariba.util.core.SimpleComponentChecksum
- All Implemented Interfaces:
- 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
SimpleComponentChecksum
public SimpleComponentChecksum(String name,
byte[] cs)
- Create the checksum based on the byte array passed in
- Parameters:
name - The component namecs - 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()
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-2009 Ariba, Inc. All Rights Reserved.