Package io.cui.tools.io
Interface FileWriter
-
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
FileReaderWriter
- All Known Implementing Classes:
FileSystemLoader
public interface FileWriter extends Serializable
Interface for file writer operations.- Author:
- Sven Haag
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StructuredFilenamegetFileName()booleanisWritable()OutputStreamoutputStream()
-
-
-
Method Detail
-
isWritable
boolean isWritable()
- Returns:
- true if an actual file is writable.
-
getFileName
StructuredFilename getFileName()
- Returns:
- the filename in an appropriate presentation.
-
outputStream
OutputStream outputStream() throws IOException
- Returns:
- an
OutputStreamon the corresponding file. It implicitly checksisWritable()before accessing the file and will throw anIllegalStateExceptionin case it is not readable. - Throws:
IOException
-
-