public class FileRecordWriter extends OutputStreamRecordWriter
| Constructor and Description |
|---|
FileRecordWriter(File file)
Convenient processor that writes records to a file.
|
FileRecordWriter(File file,
String lineSeparator)
Convenient processor that writes records to a file.
|
FileRecordWriter(File file,
String lineSeparator,
String charsetName)
Convenient processor that writes records to a file.
|
FileRecordWriter(FileWriter fileWriter)
Convenient processor that writes records to a file.
|
FileRecordWriter(FileWriter fileWriter,
String lineSeparator)
Convenient processor that writes records to a file.
|
FileRecordWriter(String fileName)
Convenient processor that writes records to a file.
|
FileRecordWriter(String fileName,
String lineSeparator)
Convenient processor that writes records to a file.
|
FileRecordWriter(String fileName,
String lineSeparator,
String charsetName)
Convenient processor that writes records to a file.
|
writePayloadprocessRecordpublic FileRecordWriter(String fileName) throws IOException
fileName - the output file name.IOExceptionpublic FileRecordWriter(String fileName, String lineSeparator) throws IOException
fileName - the output file name.lineSeparator - the line separator.IOExceptionpublic FileRecordWriter(String fileName, String lineSeparator, String charsetName) throws IOException
fileName - the output file name.lineSeparator - the line separator.charsetName - the charest nameIOExceptionpublic FileRecordWriter(File file) throws IOException
file - the output file.IOExceptionpublic FileRecordWriter(File file, String lineSeparator) throws IOException
file - the output file.lineSeparator - the line separator.IOExceptionpublic FileRecordWriter(File file, String lineSeparator, String charsetName) throws IOException
file - the output file.lineSeparator - the line separator.charsetName - the charest nameIOExceptionpublic FileRecordWriter(FileWriter fileWriter) throws IOException
fileWriter - the output file writer.IOExceptionpublic FileRecordWriter(FileWriter fileWriter, String lineSeparator) throws IOException
fileWriter - the output file writer.lineSeparator - the line separator.IOExceptionCopyright © 2015. All Rights Reserved.