Method m1 = ssi.getMethod("getSupportedClasses", null);
classes = (Class[])m1.invoke(null, null);
} catch(java.lang.NoSuchMethodException e) {
String message = JaiI18N.getString("SerializerImpl1");
listener.errorOccurred(message,
new RemoteImagingException(message, e),
SerializerImpl.class, false);
} catch (java.lang.IllegalAccessException e) {
String message = JaiI18N.getString("SerializerImpl1");
listener.errorOccurred(message,
new RemoteImagingException(message, e),
SerializerImpl.class, false);
} catch (java.lang.reflect.InvocationTargetException e) {
String message = JaiI18N.getString("SerializerImpl1");
listener.errorOccurred(message,
new RemoteImagingException(message, e),
SerializerImpl.class, false);
}
boolean supportsSubclasses = false;
try {
Method m2 = ssi.getMethod("permitsSubclasses", null);
Boolean b = (Boolean)m2.invoke(null, null);
supportsSubclasses = b.booleanValue();
} catch(java.lang.NoSuchMethodException e) {
String message = JaiI18N.getString("SerializerImpl4");
listener.errorOccurred(message,
new RemoteImagingException(message, e),
SerializerImpl.class, false);
} catch (java.lang.IllegalAccessException e) {
String message = JaiI18N.getString("SerializerImpl4");
listener.errorOccurred(message,
new RemoteImagingException(message, e),
SerializerImpl.class, false);
} catch (java.lang.reflect.InvocationTargetException e) {
String message = JaiI18N.getString("SerializerImpl4");
listener.errorOccurred(message,
new RemoteImagingException(message, e),
SerializerImpl.class, false);
}
int numClasses = classes.length;
for(int i = 0; i < numClasses; i++) {