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 dataIOException
public void open() throws IOException
IOException
public boolean isClosed()
public void close() throws IOException
IOException
protected void appendRecord(String... record) throws IOException
record
- a collection of Strings declaring values for the columns of the fileIOException
Copyright © 2022 Apache Software Foundation. All rights reserved.