Header Event

Fired every time a header is parsed.

Syntax

public open class DefaultMimeEventListener : MimeEventListener {
  ...
  public override fun header(e: MimeHeaderEvent) {}
  ...
}

public class MimeHeaderEvent {
  val partIndex: Int
  val field: String?
  val value: ByteArray?
}

Remarks

The PartIndex parameter contains the index of the part containing the current header. If the header is from the MIME body, this value will be -1. The Field parameter contains the name of the MIME header. The Value parameter contains the header contents. The Header event is fired when a header is parsed, which occurs for each header of the Message when DecodeFromFile, DecodeFromString, or DecodeFromStream is called.

Copyright (c) 2021 /n software inc. - All rights reserved.
IPWorks 2020 Kotlin Edition - Version 20.0 [Build 7941]