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

Since:
1.0
Version:
1.2.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()
          Gets the headers (Map) value.
 java.io.InputStream getInputStream()
          Gets the input stream value.
 java.io.Reader getReader()
          Gets the reader value.
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:
in - The in (PartInputStream) parameter.
Throws:
java.io.IOException - 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()
Gets the headers (Map) value.

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
Gets the reader value.

Returns:
the reader
Throws:
java.io.UnsupportedEncodingException - Unsupported Encoding Exception.

parseHeaders

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

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

1.0.0

Copyright (c) 2007, 2009 IBM