Home > Class Reference > %SYS namespace > %Net.MIMEReader

%Net.MIMEReader

class %Net.MIMEReader extends %Library.RegisteredObject

%Net.MIMEReader inputs a MIME document and represents by a top level %Net.MIMEPart with multiple parts specified.

Method Inventory

Methods

classmethod DecodeBase64(input As %String) as %String [ Language = objectscript ]
Decode a line of the base64 encoded body. The length of the input must be a multiple of 4.
classmethod DecodeHeader(input As %String) as %String [ Language = objectscript ]
Decode and return the MIME header value passed in input argument according to RFC 2047.
classmethod DecodeQP(input As %String) as %String [ Language = objectscript ]
Decode a line of the quoted printable encoded body
method OpenFile(source As %String) as %Status [ Language = objectscript ]
Open file that contains the MIME message.
method OpenStream(source As %AbstractStream) as %Status [ Language = objectscript ]
Open stream that contains the MIME message.
method ReadMIMEBody(message As %Net.MIMEPart) as %Status [ Language = objectscript ]
ReadMIMEBody() 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.
method ReadMIMEMessage(Output message As %Net.MIMEPart) as %Status [ Language = objectscript ]
ReadMIMEMessage() parses the MIME message in previously opened file or stream, and creates a %Net.MIMEPart based on this MIME message.
method readBody(message As %Net.MIMEPart, messageBoundary As %String, ByRef lastPart As %Boolean) as %Status [ Language = objectscript ]
Read the body of the current message part.
method readHeader(Output message As %Net.MIMEPart, isMultiPart As %Boolean) as %Status [ Language = objectscript ]
Read the headers of the current message part and create the %Net.MIMEPart.

Inherited Members

Inherited Methods