Class ElementIO

java.lang.Object
io.aeron.utility.ElementIO

public class ElementIO extends Object
  • Constructor Details

    • ElementIO

      public ElementIO()
  • Method Details

    • read

      public static <T> List<T> read(String elementsFilename) throws Exception
      Type Parameters:
      T - the type of elements - ConfigInfo or CounterInfo
      Parameters:
      elementsFilename - the name of the filename that contains a list of objects
      Returns:
      a list of elements
      Throws:
      Exception - on IO failure.
    • write

      public static void write(FileObject resourceFile, Collection<?> elements) throws Exception
      Parameters:
      resourceFile - the destination file to write to
      elements - a Collection of elements
      Throws:
      Exception - on IO failure.