For efficiency, if you know you'll be parsing a small amount of data, it is probably best to tell the parser to store the parsed parts in core. Returns the parsed entity, or undef on error. Simply give this method the paths to the respective files. May be an issue if your messages are large. Returns the parsed entity, or undef on error.
Returns undef on failure.
Instance method, private. You don't need to override this in your subclass. If you want the parser to do something other than write its parts out to files, you should override this method in a subclass. You are of course free to override any other methods as you see fit, like new . This is an abstract class.