Tynamo™-TINI
v1.0.4

com.qindesign.mime
Class Multipart.BodyPart

java.lang.Object
  extended by com.qindesign.mime.Multipart.BodyPart
Enclosing class:
Multipart

public static class Multipart.BodyPart
extends Object

Represents one body part of a multipart body.


Method Summary
 String getHeader(String name)
          Gets the header with the specified name.
 Enumeration getHeaderNames()
          Returns an Enumeration of all header names.
 Enumeration getHeaders(String name)
          Returns an Enumeration of all header values that are associated with the given name.
 InputStream getInputStream()
          Returns an InputStream suitable for reading the contents of this body part.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getHeader

public String getHeader(String name)
Gets the header with the specified name.

Parameters:
name - the header name
Returns:
the contents of the specified header.

getHeaderNames

public Enumeration getHeaderNames()
Returns an Enumeration of all header names.

Returns:
all header names.

getHeaders

public Enumeration getHeaders(String name)
Returns an Enumeration of all header values that are associated with the given name.

Parameters:
name - the header name
Returns:
the contents of all headers with the given name.

getInputStream

public InputStream getInputStream()
Returns an InputStream suitable for reading the contents of this body part.

Returns:
an InputStream for reading the contents of this body part.

Tynamo™-TINI
v1.0.4

© 2001-2007 Shawn Silverman