public class YamlConfigIO extends Object
InputTriggerDescriptions to a
 YAML file.
 The YAML file will have this shape:
--- - !mapping action: ts select vertex contexts: [trackscheme] trigger: button1 - !mapping action: ts select edge contexts: [bdv, trackscheme] trigger: button2 - !mapping action: navigate contexts: [bdv, trackscheme] trigger: A - !mapping action: sleep contexts: [] trigger: B
| Modifier and Type | Method and Description | 
|---|---|
| static List<InputTriggerDescription> | read(Reader reader)Reads from the specified reader instance and returns the list of
 serialized  InputTriggerDescriptions that are found in the input
 stream. | 
| static List<InputTriggerDescription> | read(String fileName)Reads from the specified file and returns the list of serialized
  InputTriggerDescriptions that are found in the file. | 
| static void | write(Iterable<InputTriggerDescription> descriptions,
     String fileName)Writes the specified  InputTriggerDescriptions on the specified
 file. | 
| static void | write(Iterable<InputTriggerDescription> descriptions,
     Writer writer)Writes the specified  InputTriggerDescriptions on the specified
 writer. | 
public static void write(Iterable<InputTriggerDescription> descriptions, Writer writer)
InputTriggerDescriptions on the specified
 writer.descriptions - an iterable of the mapping description to write.writer - the writer. Is not closed after this method returns.public static void write(Iterable<InputTriggerDescription> descriptions, String fileName) throws IOException
InputTriggerDescriptions on the specified
 file.descriptions - an iterable of the mapping description to write.fileName - the system-dependent filename.IOException - if the named file exists but is a directory rather than a
             regular file, does not exist but cannot be created, or cannot
             be opened for any other reasonpublic static List<InputTriggerDescription> read(Reader reader)
InputTriggerDescriptions that are found in the input
 stream.
 Malformed serializations generate an error which is echoed on the console.
reader - the reader to read from. Is not closed after this method
            returns.InputTriggerDescriptions found
         in the stream. Empty if the serialization is malformed.public static List<InputTriggerDescription> read(String fileName) throws IOException
InputTriggerDescriptions that are found in the file.fileName - the system-dependent filename.InputTriggerDescriptions found
         in the file. Empty if the file is malformed.IOException - if an I/O error occurs, if the named file does not exist, is
             a directory rather than a regular file, or for some other
             reason cannot be opened for reading.Copyright © 2015–2022 SciJava. All rights reserved.