# Class ARI1JInstrumentParser

java.lang.Object
com.io7m.aradine.instrument.spi1.json_data.internal.ARI1JInstrumentParser

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

public final class ARI1JInstrumentParser extends Object implements ARI1InstrumentParserType
The instrument parser.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ARI1JInstrumentParser(URI inSource, InputStream inStream, Consumer<com.io7m.anethum.api.ParseStatus> inStatusConsumer)`
  The instrument parser.

- ## Method Summary

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

  ### Methods inherited from class Object

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

- ## Constructor Details

  - ### ARI1JInstrumentParser

    public ARI1JInstrumentParser(URI inSource, InputStream inStream, Consumer<com.io7m.anethum.api.ParseStatus> inStatusConsumer)
    The instrument parser.
    Parameters:
      `inSource` - The source
      `inStream` - The stream
      `inStatusConsumer` - The status consumer

- ## Method Details

  - ### execute

    public ARI1InstrumentDescription execute() throws com.io7m.anethum.api.ParsingException
    Specified by:
      `execute` in interface `com.io7m.anethum.api.ParserType<ARI1InstrumentDescription>`
    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`