Class ToolIO


  • public final class ToolIO
    extends IO
    Author:
    Group 3
    • Field Detail

      • XML_FILE_NAME

        protected static final java.lang.String XML_FILE_NAME
        Name of XML doc.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ToolIO

        public ToolIO​(java.lang.String toolFilePath)
        Load tools from path string.
        Parameters:
        toolFilePath - Path to tools Zip.
      • ToolIO

        public ToolIO​(java.io.InputStream toolStream)
        Load tools from Stream.
        Parameters:
        toolStream - Stream of tools Zip.
    • Method Detail

      • retrieveDoc

        protected java.util.Optional<nu.xom.Document> retrieveDoc​(java.nio.file.FileSystem fs)
        Get doc from FileSystem.
        Specified by:
        retrieveDoc in class IO
        Parameters:
        fs - FileSystem
        Returns:
        Maybe Doc.
      • canSave

        public boolean canSave()
        Am I allowed to save the open doc?
        Overrides:
        canSave in class IO
        Returns:
        Boolean.