Class Savable

    • Field Detail

      • name

        protected final String name
        Name of file.
      • ext

        protected final String ext
        Extension of the file, i.e. "rs".
      • content

        protected final org.cactoos.Scalar<String> content
        Content inside file.
    • Constructor Detail

      • Savable

        public Savable​(String name,
                       String ext,
                       org.cactoos.Scalar<String> content)
        Ctor.
        Parameters:
        name - Name of the file.
        ext - Extension.
        content - Content.
    • Method Detail

      • save

        public void save​(Footprint footprint)
                  throws IOException
        Save it by footprint.
        Parameters:
        footprint - Footprint.
        Throws:
        IOException - If any issues with IO.