Class Save


  • public final class Save
    extends Object
    Save a file operation.
    Since:
    0.1
    • Constructor Detail

      • Save

        public Save​(InputStream input,
                    Path file)
        Ctor.
        Parameters:
        input - The input
        file - File to save to
      • Save

        public Save​(String txt,
                    Path file)
        Ctor.
        Parameters:
        txt - The content
        file - The path
      • Save

        public Save​(byte[] bytes,
                    Path file)
        Ctor.
        Parameters:
        bytes - The content
        file - The path
      • Save

        public Save​(org.cactoos.Input input,
                    Path file)
        Ctor.
        Parameters:
        input - The input
        file - File to save to
    • Method Detail

      • rel

        public static String rel​(Path file)
        Make relative name from path.
        Parameters:
        file - The path of the file or dir
        Returns:
        Relative name to CWD