IRISLIB database
MIMEReader Class Reference
Inheritance diagram for MIMEReader:
Collaboration diagram for MIMEReader:

Public Member Functions

_.Library.Status OpenFile (_.Library.String source)
 Open file that contains the MIME message.
 
_.Library.Status OpenStream (_.Library.AbstractStream source)
 Open stream that contains the MIME message.
 
_.Library.Status ReadMIMEBody (_.Net.MIMEPart message)
 <method>ReadMIMEBody</method> parses the MIME body in previously opened file or stream More...
 
_.Library.Status ReadMIMEMessage (_.Net.MIMEPart message)
 <method>ReadMIMEMessage</method> parses the MIME message in previously opened More...
 
_.Library.Status readBody (_.Net.MIMEPart message, _.Library.String messageBoundary, _.Library.Boolean lastPart)
 Read the body of the current message part.
 
_.Library.Status readHeader (_.Net.MIMEPart message, _.Library.Boolean isMultiPart)
 Read the headers of the current message part and create the Net.MIMEPart.
 
- Public Member Functions inherited from RegisteredObject
_.Library.Status OnAddToSaveSet (_.Library.Integer depth, _.Library.Integer insert, _.Library.Integer callcount)
 This callback method is invoked when the current object is added to the SaveSet,. More...
 
_.Library.Status OnClose ()
 This callback method is invoked by the <METHOD>Close</METHOD> method to. More...
 
_.Library.Status OnConstructClone (_.Library.RegisteredObject object, _.Library.Boolean deep, _.Library.String cloned)
 This callback method is invoked by the <METHOD>ConstructClone</METHOD> method to. More...
 
_.Library.Status OnNew ()
 This callback method is invoked by the <METHOD>New</METHOD> method to. More...
 
_.Library.Status OnValidateObject ()
 This callback method is invoked by the <METHOD>ValidateObject</METHOD> method to. More...
 

Static Public Member Functions

_.Library.String DecodeBase64 (_.Library.String input)
 Decode a line of the base64 encoded body. More...
 
_.Library.String DecodeHeader (_.Library.String input)
 Decode and return the MIME header value passed in input argument. More...
 
_.Library.String DecodeQP (_.Library.String input)
 Decode a line of the quoted printable encoded body.
 

Private Attributes

 __buffer
 Current buffer for stream input. More...
 
 __inputStream
 Stream containing the MIME message. More...
 
 __pos
 Position of next input to process in the stream buffer. More...
 
 __previousCR
 If true, previous line ended in CR which was discarded. More...
 

Additional Inherited Members

- Static Public Attributes inherited from RegisteredObject
 CAPTION = None
 Optional name used by the Form Wizard for a class when generating forms. More...
 
 JAVATYPE = None
 The Java type to be used when exported.
 
 PROPERTYVALIDATION = None
 This parameter controls the default validation behavior for the object. More...
 

Detailed Description

For information on using this class, see MIME Messages.

Net.MIMEReader inputs a MIME document and represents it by a top-level <class>Net.MIMEPart</class> with multiple parts specified.

Member Function Documentation

◆ DecodeBase64()

_.Library.String DecodeBase64 ( _.Library.String  input)
static

Decode a line of the base64 encoded body.

The length of the input must be a multiple of 4.

◆ DecodeHeader()

_.Library.String DecodeHeader ( _.Library.String  input)
static

Decode and return the MIME header value passed in input argument.

according to RFC 2047.

◆ ReadMIMEBody()

_.Library.Status ReadMIMEBody ( _.Net.MIMEPart  message)

<method>ReadMIMEBody</method> parses the MIME body in previously opened file or stream

and makes it the body the MIME message represented by message Net.MIMEPart. Headers for the MIME message are assumed to have been processed and included in message.

◆ ReadMIMEMessage()

_.Library.Status ReadMIMEMessage ( _.Net.MIMEPart  message)

<method>ReadMIMEMessage</method> parses the MIME message in previously opened

file or stream, and creates a Net.MIMEPart based on this MIME message.

Member Data Documentation

◆ __buffer

__buffer
private

Current buffer for stream input.

 

◆ __inputStream

__inputStream
private

Stream containing the MIME message.

Declared as RegisteredObject to prevent auto create of serial object.  

◆ __pos

__pos
private

Position of next input to process in the stream buffer.

 

◆ __previousCR

__previousCR
private

If true, previous line ended in CR which was discarded.