com.starbase.starteam
Class EmailAttachment

java.lang.Object
  |
  +--com.starbase.starteam.EmailAttachment

public class EmailAttachment
extends java.lang.Object

This class embodies an email attachment.

See Also:
Server.sendMailWithAttachments(com.starbase.starteam.View, int[], int[], int[], java.lang.String, java.lang.String, com.starbase.starteam.EmailAttachment[])

Constructor Summary
EmailAttachment(java.io.File source, java.lang.String name, java.lang.String contentType)
          Creates a new email attachment based on the specified input file.
 
Method Summary
 boolean equals(java.lang.Object source)
          returns true if this object instance is equal to the source
 int hashCode()
          returns a unique hash for all instances of this type
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmailAttachment

public EmailAttachment(java.io.File source,
                       java.lang.String name,
                       java.lang.String contentType)
Creates a new email attachment based on the specified input file. You must also supply a name for the attachment and the MIME content-type. For example, content-type might be "text/html"

Parameters:
source - the file to be attached, may not be null
name - the name to call the attachment, may not be null
contentType - the attachment's content type, may not be null
Method Detail

equals

public boolean equals(java.lang.Object source)
returns true if this object instance is equal to the source

Overrides:
equals in class java.lang.Object
Parameters:
source - Object the source to comapre with
Returns:
boolean true if this object is equal to the source

hashCode

public int hashCode()
returns a unique hash for all instances of this type

Overrides:
hashCode in class java.lang.Object
Returns:
int a unique hash for all instances of this type


StarTeam SDK 10.4, Build 36
Copyright © 2003-2008 Borland Software Corporation. All rights reserved.