1.0.0

org.eclipse.soda.dk.testmanager.servlet
Class MimePart

java.lang.Object
  extended by org.eclipse.soda.dk.testmanager.servlet.MimePart

public class MimePart
extends java.lang.Object

Version:
1.0.0

Constructor Summary
MimePart(MimeMultiPart.PartInputStream in)
          Constructs an instance of this class from the specified parser parameter.
 
Method Summary
 java.lang.String getHeader(java.lang.String key)
          Get header with the specified key parameter and return the String result.
 java.util.Map getHeaders()
           
 java.io.InputStream getInputStream()
          Gets the input stream value.
 java.io.Reader getReader()
           
protected  void parseHeaders()
          Parse headers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MimePart

public MimePart(MimeMultiPart.PartInputStream in)
         throws java.io.IOException
Constructs an instance of this class from the specified parser parameter.

Parameters:
parser - The parser (MimeMultiPart) parameter.
in - The in (PartInputStream) parameter.
Throws:
IOException.
java.io.IOException
Method Detail

getHeader

public java.lang.String getHeader(java.lang.String key)
Get header with the specified key parameter and return the String result.

Parameters:
key - The key (String) parameter.
Returns:
Results of the get header (String) value.

getHeaders

public java.util.Map getHeaders()
Returns:
the headers
See Also:
parseHeaders()

getInputStream

public java.io.InputStream getInputStream()
Gets the input stream value.

Returns:
The input stream (InputStream) value.

getReader

public java.io.Reader getReader()
                         throws java.io.UnsupportedEncodingException
Returns:
the reader
Throws:
java.io.UnsupportedEncodingException - Unsupported Encoding Exception.

parseHeaders

protected void parseHeaders()
                     throws java.io.IOException
Parse headers.

Throws:
IOException.
java.io.IOException
See Also:
getHeaders()

1.0.0

Copyright (c) 2007 IBM