com.aurigalogic.aurigadoc.util
Class MHTCompiler

java.lang.Object
  |
  +--com.aurigalogic.aurigadoc.util.MHTCompiler

public class MHTCompiler
extends java.lang.Object

This class is the used for processing the generated html file to create a web archive (.MHT) file

Version:
$Revision: 1.7 $ $Date: 2003/10/16 15:31:21 $
Author:
Khurshidali Shaikh

Constructor Summary
MHTCompiler(java.lang.String inputFile, java.lang.String outputFile)
          Constructor.
 
Method Summary
 void compile()
          Compiles the mht file.
 void setBcc(java.lang.String bcc)
          Sets the email address to use in the Bcc field.
 void setCc(java.lang.String cc)
          Sets the email address to use in the Cc field.
 void setFrom(java.lang.String from)
          Sets the from email address.
 void setSendMail(boolean sendMail)
          Sets the flg indicating whether to also send the output as mail.
 void setSmtp(java.lang.String smtp)
          Sets the smtp host for sending mail.
 void setSubject(java.lang.String subject)
          Sets the subject for the mail.
 void setTo(java.lang.String to)
          Sets the email address To use in the to field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MHTCompiler

public MHTCompiler(java.lang.String inputFile,
                   java.lang.String outputFile)
Constructor.

Parameters:
inputFile - - input file path
outputFile - - the output file path
Method Detail

setFrom

public void setFrom(java.lang.String from)
Sets the from email address.

Parameters:
from - the email address to use in From field.

setTo

public void setTo(java.lang.String to)
Sets the email address To use in the to field.

Parameters:
to - comma seperated list of email addresses to use in the to field.

setSubject

public void setSubject(java.lang.String subject)
Sets the subject for the mail.

Parameters:
subject - the mail subject.

setCc

public void setCc(java.lang.String cc)
Sets the email address to use in the Cc field.

Parameters:
cc - comma seperated list of email addresses.

setBcc

public void setBcc(java.lang.String bcc)
Sets the email address to use in the Bcc field.

Parameters:
bcc - comma seperated list of email addresses.

setSmtp

public void setSmtp(java.lang.String smtp)
Sets the smtp host for sending mail.

Parameters:
smtp - smtp host.

setSendMail

public void setSendMail(boolean sendMail)
Sets the flg indicating whether to also send the output as mail.

Parameters:
sendMail - whether to send mail

compile

public void compile()
             throws java.lang.Exception
Compiles the mht file.

Throws:
java.lang.Exception - if an error occurs


Copyright © 2000, 2003 Auriga Logic Pvt. Ltd. All Rights Reserved.