Class AnIMLReader

java.lang.Object
org.episteme.natural.chemistry.loaders.animl.AnIMLReader

public class AnIMLReader extends Object
Analytical Information Markup Language (AnIML) Reader.

Parses AnIML files containing spectroscopic, chromatographic, and other analytical chemistry data. AnIML is an ASTM standard (E2077) for representing analytical instrument data.

Supported Data Types:

  • Spectroscopy data (UV-Vis, IR, NMR, MS)
  • Chromatography data (GC, HPLC, IC)
  • Electrochemical data
  • Thermal analysis data (DSC, TGA)

This implementation uses standard DOM parsing to remove dependencies on external schemas (org.astm).

* @see ASTM E2077 AnIML Standard
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Constructor Details

    • AnIMLReader

      public AnIMLReader()
      Creates a new AnIMLReader.
  • Method Details

    • read

      public AnIMLDocument read(InputStream input) throws AnIMLException
      Reads AnIML data from an input stream.
      Parameters:
      input - the input stream containing AnIML data
      Returns:
      an AnIML document containing parsed analytical data
      Throws:
      AnIMLException - if parsing fails
    • read

      public AnIMLDocument read(File file) throws AnIMLException
      Reads AnIML data from a file.
      Parameters:
      file - the file containing AnIML data
      Returns:
      an AnIML document containing parsed analytical data
      Throws:
      AnIMLException - if parsing fails