gov.nasa.pds.tools.label.validate
Interface DataObjectValidator

All Known Implementing Classes:
ImageValidator, TableValidator

public interface DataObjectValidator

Version:
$Revision: 4967 $
Author:
pramirez, jagander

Method Summary
 void validate(DataObjectInputStream input, ObjectStatement object)
          Validates the bytes in the object against the description in the ObjectStatement
 

Method Detail

validate

void validate(DataObjectInputStream input,
              ObjectStatement object)
              throws InvalidObjectException,
                     InvalidDescriptionException
Validates the bytes in the object against the description in the ObjectStatement

Parameters:
input - bytes of the data object
object - The description of the object consists of a set of attribute statements
Throws:
InvalidObjectException - if there is a problem with the bytes in accordance with the description
InvalidDescriptionException - if the description is insufficient for the validation to take place


Copyright © 2005-2011 Planetary Data System. All Rights Reserved.