Package org.eolang.maven
Class Save
- java.lang.Object
-
- org.eolang.maven.Save
-
public final class Save extends Object
Save a file operation.- Since:
- 0.1
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
rel(Path file)
Make relative name from path.void
save()
Save the file to the path.void
saveQuietly()
Save the file to the path, without any checked exceptions.
-
-
-
Constructor Detail
-
Save
public Save(InputStream input, Path file)
Ctor.- Parameters:
input
- The inputfile
- File to save to
-
Save
public Save(org.cactoos.Text txt, Path file)
Ctor.- Parameters:
txt
- The contentfile
- The path
-
Save
public Save(byte[] bytes, Path file)
Ctor.- Parameters:
bytes
- The contentfile
- The path
-
Save
public Save(org.cactoos.Input input, Path file)
Ctor.- Parameters:
input
- The inputfile
- File to save to
-
-
Method Detail
-
saveQuietly
public void saveQuietly()
Save the file to the path, without any checked exceptions.
-
save
public void save() throws IOException
Save the file to the path.- Throws:
IOException
- If fails
-
-