public static <T>FST<T> read(Path path,Outputs<T> outputs) throws IOException {
  try (InputStream is=Files.newInputStream(path)){
    return new FST<>(new InputStreamDataInput(new BufferedInputStream(is)),outputs);
  }
 }

public static < T > FST < T > read ( Path path , Outputs < T > outputs ) throws IOException { try ( InputStream is = Files . newInputStream ( path ) ) { return new FST < > ( new InputStreamDataInput ( new BufferedInputStream ( is ) ) , outputs ) ; } }
reads an automaton from a file .
