Class ILEFormat


  • public final class ILEFormat
    extends Object
    Utilities for handling the ILE (identifier, length, elements) file format.
    • Method Detail

      • parse

        public static org.jgrapht.alg.interfaces.ClusteringAlgorithm.Clustering<String> parse​(Stream<String> stream)
        Read the ILE-formatted file representing the clusters.
        Parameters:
        stream - the input stream
        Returns:
        the clusters
      • write

        public static void write​(BufferedWriter writer,
                                 org.jgrapht.alg.interfaces.ClusteringAlgorithm.Clustering<String> clustering)
                          throws IOException
        Write the ILE-formatted file representing the clusters.
        Parameters:
        writer - the writer
        clustering - the clusters
        Throws:
        IOException - if an I/O error occurs