return writer.toString();
}
private Data[] getFilePathData(Data[] fileData) {
Data Data = (Data) fileData[0];
String format = Data.getFormat();
File actualFile = (File) Data.getData();
try {
String filePath = actualFile.getCanonicalPath();
Data result = new BasicData(filePath, format);
return new Data[] { result };
} catch (IOException e) {
this.logger.log(LogService.LOG_ERROR, "Could not get file path " +
"from file " + actualFile, e);
return null;