public abstract class AbstractKerberosDataFileWriter extends Object
CSVPrinter to create a CSV-formatted file.| Constructor and Description |
|---|
AbstractKerberosDataFileWriter(File file)
Creates a new KerberosConfigDataFileWriter
The file is opened upon creation, so there is no need to manually open it unless manually
closed before using.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendRecord(String... record)
Appends a new record to the data file
|
void |
close()
Closes the data file
|
protected abstract Iterable<String> |
getHeaderRecord()
Gets the header record for the CSV file
|
boolean |
isClosed()
Tests this KerberosConfigDataFileWriter to see if the data file is closed.
|
void |
open()
Opens the data file for writing.
|
public AbstractKerberosDataFileWriter(File file) throws IOException
file - a File declaring where to write the dataIOExceptionpublic void open()
throws IOException
IOExceptionpublic boolean isClosed()
public void close()
throws IOException
IOExceptionprotected void appendRecord(String... record) throws IOException
record - a collection of Strings declaring values for the columns of the fileIOExceptionCopyright © 2022 Apache Software Foundation. All rights reserved.