Package com.io7m.montarre.xml.internal

# Class MPackageDeclarationParser

java.lang.Object
com.io7m.montarre.xml.internal.MPackageDeclarationParser

All Implemented Interfaces:
  `com.io7m.anethum.api.ParserType<MPackageDeclaration>`, `MPackageDeclarationParserType`, `Closeable`, `AutoCloseable`

public final class MPackageDeclarationParser extends Object implements MPackageDeclarationParserType
Package declaration parser.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `MPackageDeclarationParser(com.io7m.jxe.core.JXEHardenedSAXParsers inContext, URI inSource, InputStream inStream, Consumer<com.io7m.anethum.api.ParseStatus> inStatusConsumer)`
  Package declaration parser.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `close()`
  `MPackageDeclaration`
  `execute()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### MPackageDeclarationParser

    public MPackageDeclarationParser(com.io7m.jxe.core.JXEHardenedSAXParsers inContext, URI inSource, InputStream inStream, Consumer<com.io7m.anethum.api.ParseStatus> inStatusConsumer)
    Package declaration parser.
    Parameters:
      `inContext` - The SAX parsers
      `inSource` - The source
      `inStream` - The input stream
      `inStatusConsumer` - The status consume

- ## Method Details

  - ### execute

    public MPackageDeclaration execute() throws com.io7m.anethum.api.ParsingException
    Specified by:
      `execute` in interface `com.io7m.anethum.api.ParserType<MPackageDeclaration>`
    Throws:
      `com.io7m.anethum.api.ParsingException`

  - ### close

    public void close() throws IOException
    Specified by:
      `close` in interface `AutoCloseable`
    Specified by:
      `close` in interface `Closeable`
    Throws:
      `IOException`