| Constructor and Description |
|---|
ImpExCsvFile() |
ImpExCsvFile(String fileName)
Creates a new
ImpExCsvFile instance with a corresponding file named fileName. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the
OutputStream associated with this instance. |
File |
getFile()
Returns the
File object associated with this instance. |
String |
getFileExtension()
Returns the file extension of the file associated with this instance.
|
String |
getMimeType()
Returns the corresponding mime type for the file associated with this instance.
|
OutputStream |
getOutputStream()
Returns the
OutputStream associated with this instance. |
public ImpExCsvFile()
throws IOException
IOExceptionpublic ImpExCsvFile(String fileName) throws IOException
ImpExCsvFile instance with a corresponding file named fileName.fileName - name of the file associated with this ImpExCsvFile instance.IOException - if any errors occur while opening files and streams associated with this ImpExCsvFile
instance.public OutputStream getOutputStream()
ImpExFileOutputStream associated with this instance.getOutputStream in interface ImpExFileOutputStream associated with this instancepublic void close()
throws IOException
ImpExFileOutputStream associated with this instance.close in interface ImpExFileIOException - if any error occur while closing the streampublic File getFile()
ImpExFileFile object associated with this instance.public String getMimeType()
ImpExFilegetMimeType in interface ImpExFilepublic String getFileExtension()
ImpExFilegetFileExtension in interface ImpExFileCopyright © 2017 SAP SE. All Rights Reserved.