public class OutputFileSystemDirectory extends InputFileSystemDirectory implements IOutputWorkingDirectory
Implements the regular file system's method for getting a file stream to write to.
Constructor and Description |
---|
OutputFileSystemDirectory(String basePath)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Disposes the instance.
|
OutputStream |
getOutputFile(String fileName,
String[] fullName)
Returns the stream to write to.
|
getFile
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFile
public OutputFileSystemDirectory(String basePath)
Creates new instance.
basePath
- The base path of the directory.public OutputStream getOutputFile(String fileName, String[] fullName) throws IOException
Returns the stream to write to.
getOutputFile
in interface IOutputWorkingDirectory
fileName
- The file name. The full file name via fullName
parameter.fullName
- The full file name.IOException
- when file can't be retrieved.public void close()
Disposes the instance.
close
in interface IInputWorkingDirectory
close
in class InputFileSystemDirectory