java.io

Interface ObjectInputValidation

Known Implementing Classes:
AbstractDataset, AbstractIntervalXYDataset, AbstractSeriesDataset, AbstractXYDataset, AbstractXYZDataset, CategoryTableXYDataset, CategoryToPieDataset, CombinedDataset, DefaultBoxAndWhiskerCategoryDataset, DefaultBoxAndWhiskerXYDataset, DefaultCategoryDataset, DefaultContourDataset, DefaultHighLowDataset, DefaultIntervalCategoryDataset, DefaultIntervalXYDataset, DefaultKeyedValueDataset, DefaultKeyedValues2DDataset, DefaultKeyedValuesDataset, DefaultMultiValueCategoryDataset, DefaultOHLCDataset, DefaultPieDataset, DefaultStatisticalCategoryDataset, DefaultTableXYDataset, DefaultValueDataset, DefaultWindDataset, DefaultXYDataset, DefaultXYZDataset, DefaultXYZDataset, DynamicTimeSeriesCollection, HistogramDataset, JDBCCategoryDataset, JDBCPieDataset, JDBCXYDataset, MatrixSeriesCollection, NonGridContourDataset, OHLCSeriesCollection, SimpleHistogramDataset, SubSeriesDataset, TaskSeriesCollection, TimePeriodValuesCollection, TimeSeriesCollection, TimeTableXYDataset, VectorSeriesCollection, WaferMapDataset, XIntervalSeriesCollection, XYBarDataset, XYIntervalSeriesCollection, XYSeriesCollection, YIntervalSeriesCollection

public interface ObjectInputValidation

Callback interface to allow validation of objects within a graph. Allows an object to be called when a complete graph of objects has been deserialized.
Since:
JDK1.1
See Also:
ObjectInputStream, ObjectInputStream.registerValidation(ObjectInputValidation,int)

Method Summary

void
validateObject()
Validates the object.

Method Details

validateObject

public void validateObject()
            throws InvalidObjectException
Validates the object.
Throws:
InvalidObjectException - If the object cannot validate itself.
Usages and Demos :

View More Examples of validateObject()
   1: import java.io.InvalidObjectException;
   2: import java.io.ObjectInputValidation;
   3: import java.io.ObjectStreamClass;
   4:         ...
   5: 
   6:             public void registerValidation(final ObjectInputValidation validation, int priority) {
   7:                 context.addCompletionCallback(new Runnable() {
   8:         ...
   9:                         try {
  10:                             validation.validateObject();
  11:                         } catch (InvalidObjectException e) {

View Full Code Here