public class FileDocumentMediator extends Object implements DocumentMediator
| Constructor and Description |
|---|
FileDocumentMediator(File input) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultFolder(Date date) |
Timestamp |
getDefaultTimestamp() |
String |
getInputLocation() |
InputStream |
getInputStream() |
InputStream |
getInputStream(Path path) |
protected File |
getLogFile() |
OutputStream |
getLogOutputStream(String directory,
String dummyName) |
OutputStream |
getOutputStream(Path path) |
protected File |
getReportFile() |
OutputStream |
getReportOutputStream(String directory,
String reportName) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwriteLogOutput, writeOutput, writeReportOutputpublic FileDocumentMediator(File input)
public Timestamp getDefaultTimestamp()
getDefaultTimestamp in interface DocumentMediatorpublic String getDefaultFolder(Date date)
getDefaultFolder in interface DocumentMediatorpublic String getInputLocation()
getInputLocation in interface DocumentMediatorprotected File getLogFile()
protected File getReportFile()
public InputStream getInputStream() throws IOException
getInputStream in interface DocumentMediatorIOExceptionpublic InputStream getInputStream(Path path) throws IOException
getInputStream in interface DocumentMediatorIOExceptionpublic OutputStream getLogOutputStream(String directory, String dummyName) throws IOException
getLogOutputStream in interface DocumentMediatorIOExceptionpublic OutputStream getReportOutputStream(String directory, String reportName) throws IOException
getReportOutputStream in interface DocumentMediatorIOExceptionpublic OutputStream getOutputStream(Path path) throws IOException
getOutputStream in interface DocumentMediatorIOExceptionCopyright © 2015. All rights reserved.