Purpose File Data Source

FileDataSource filedatasource = new FileDataSource(filename);

messagebodypart2.setDataHandler(new DataHandler(filedatasource));

messagebodypart2.setFileName(filedatasource.getName ());

Multipart multipart = new MimeMultipart();

multipart.addBodyPart(messagebodypart1);

multipart.addBodyPart(messagebodypart2);

message.setContent(multipart);

What is the purpose of the above code while writing a mail program ? More specifically what is the purpose of FileDataSource ?

Thanks in advance

[548 byte] By [oasis.deserta] at [2007-11-27 8:58:11]
# 1
It specifies that the source of the data should come from the named file.
bshannona at 2007-7-12 21:23:46 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...