Interface WritableFolder
-
public interface WritableFolder
A role for folders that can be written into.- Author:
- Fabrizio Giudici
- Stereotype:
- role
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.Class<WritableFolder>
_WritableFolder_
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
write(java.lang.String fileName, it.tidalwave.role.io.Marshallable marshallable)
Writes a marshallable object into the specified file.void
write(java.lang.String fileName, java.lang.String text)
Writes a text into the specified file.
-
-
-
Field Detail
-
_WritableFolder_
static final java.lang.Class<WritableFolder> _WritableFolder_
-
-
Method Detail
-
write
void write(@Nonnull java.lang.String fileName, @Nonnull java.lang.String text) throws java.io.IOException
Writes a text into the specified file.- Parameters:
fileName
- the name of the file inside the folder to write totext
- the text to write- Throws:
java.io.IOException
- in case of I/O error
-
write
void write(@Nonnull java.lang.String fileName, @Nonnull it.tidalwave.role.io.Marshallable marshallable) throws java.io.IOException
Writes a marshallable object into the specified file.- Parameters:
fileName
- the name of the file inside the folder to write tomarshallable
- the object to write- Throws:
java.io.IOException
- in case of I/O error
-
-