Module libldt
Package libldt3

Class LdtReader

java.lang.Object
libldt3.LdtReader

public class LdtReader extends Object
Simple, reflection and annotation based reader for LDT 3.0.
Author:
Christoph Brill <opensource@christophbrill.de>
  • Constructor Details

  • Method Details

    • read

      public List<Satz> read(String path) throws IOException
      Read the LDT found on a given path.
      Parameters:
      path - the path of the LDT file (any format handled by NIO Path)
      Returns:
      the list of Satz elements found in the LDT file
      Throws:
      IOException - thrown if reading the file failed
    • read

      public List<Satz> read(Path path) throws IOException
      Read the LDT found on a given path.
      Parameters:
      path - the path of the LDT file
      Returns:
      the list of Satz elements found in the LDT file
      Throws:
      IOException - thrown if reading the file failed
    • read

      public List<Satz> read(Stream<String> stream)
      Read the LDT from a given string stream.
      Parameters:
      stream - the LDT lines as string stream
      Returns:
      the list of Satz elements found in the LDT file