break;
Object element = iter.next();
for( Transfer transfer : toSet ) {
if( transfer instanceof UDIGTransfer){
UDIGTransfer t=(UDIGTransfer) transfer;
if( !t.validate(element) )
toSet.remove(t);
continue;
}
if (transfer instanceof TextTransfer) {
TextTransfer t = (TextTransfer) transfer;
try{
t.javaToNative(element, t.getSupportedTypes()[0]);
}catch (Exception e) {
toSet.remove(t);
}
}
if (transfer instanceof FileTransfer) {
FileTransfer t = (FileTransfer) transfer;
try{
t.javaToNative(element, t.getSupportedTypes()[0]);
}catch (Exception e) {
toSet.remove(t);
}
}
if (transfer instanceof RTFTransfer) {
RTFTransfer t = (RTFTransfer) transfer;
try{
t.javaToNative(element, t.getSupportedTypes()[0]);
}catch (Exception e) {
toSet.remove(t);
}
}
if (transfer instanceof HTMLTransfer) {
HTMLTransfer t = (HTMLTransfer) transfer;
try{
t.javaToNative(element, t.getSupportedTypes()[0]);
}catch (Exception e) {
toSet.remove(t);
}
}
}