Package org.eolang.maven.footprint
Interface Footprint
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<Path>
list(String ext)
Get list of saved regular files with ext.String
load(String program, String ext)
Get program content of a specific type.void
save(String program, String ext, org.cactoos.Scalar<String> content)
Save content.
-
-
-
Method Detail
-
load
String load(String program, String ext) throws IOException
Get program content of a specific type.- Parameters:
program
- Program nameext
- File extension which defines the type- Returns:
- Content of a file
- Throws:
IOException
- In case of IO issue.
-
save
void save(String program, String ext, org.cactoos.Scalar<String> content) throws IOException
Save content.- Parameters:
program
- Program nameext
- File extensioncontent
- File content- Throws:
IOException
- In case of IO issues
-
list
List<Path> list(String ext) throws IOException
Get list of saved regular files with ext.- Parameters:
ext
- File extension- Returns:
- List of files
- Throws:
IOException
- In case of IO issues
-
-