Package fileLogic

Class XMLWriter

java.lang.Object
fileLogic.XMLWriter
All Implemented Interfaces:
BaseWriter

public class XMLWriter extends Object implements BaseWriter
XML Writer class for Saver class. It writes XML file by given path and consume collection of paths and values, transforming it into XML file.
Since:
1.0
See Also:
  • Constructor Details

    • XMLWriter

      public XMLWriter()
  • Method Details

    • writeToFile

      public void writeToFile(String path, LinkedHashMap<String[],String> values)
      Description copied from interface: BaseWriter
      Base method for writing collection in file. You should provide Address-Value interpretation for normal writing.
      Specified by:
      writeToFile in interface BaseWriter
      Parameters:
      path - Full path to file. If file will don't exist, method will try to create it automatically.
      values - Address-value interpretation of Collection.