uk.ac.starlink.parquet

## Class SnakeMamlParser

- java.lang.Object
- - uk.ac.starlink.parquet.SnakeMamlParser

- All Implemented Interfaces:
    MamlParser

      public class SnakeMamlParser
      extends java.lang.Object
      implements MamlParser

  MamlParser based on the SnakeYaml library.

  In principle, this implementation is coded from the MAML 1.0-1.2 format description at https://github.com/asgr/MAML-Format. In practice it was done partly by looking at example files in the same place.

  MAML support in STIL is currently on a best-efforts basis. This implementation picks up some of the most useful metadata, but does not make great efforts to do the best thing in all cases.

  Since:
    22 Jun 2026

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SnakeMamlParser()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `MamlMetadata` | `parseMaml(java.lang.String txt)` Parse a YAML string to produce a MamlMetadata object.

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

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

- - ### Constructor Detail

    - #### SnakeMamlParser

          public SnakeMamlParser()

  - ### Method Detail

    - #### parseMaml

          public MamlMetadata parseMaml(java.lang.String txt)
                                 throws TableFormatException

      Description copied from interface: `MamlParser`
      Parse a YAML string to produce a MamlMetadata object.
      Specified by:
        `parseMaml` in interface `MamlParser`
      Parameters:
        `txt` - input YAML
      Returns:
        MAML metadata structure
      Throws:
        `TableFormatException` - if YAML is incorrect