public abstract class AbstractKerberosDataFileReader extends Object implements Iterable<Map<String,String>>
CSVParser
to read a CSV-formatted file.Modifier | Constructor and Description |
---|---|
protected |
AbstractKerberosDataFileReader(File file)
Creates a new AbstractKerberosDataFileReader
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 |
---|---|
void |
close() |
boolean |
isClosed()
Tests this AbstractKerberosDataFileReader to see if the data file is closed.
|
Iterator<Map<String,String>> |
iterator()
Gets an iterator to use to access the records in the data file.
|
void |
open()
Opens the data file for reading.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
protected AbstractKerberosDataFileReader(File file) throws IOException
file
- a File declaring where to write the dataIOException
public void open() throws IOException
IOException
- if an error occurs while accessing the filepublic boolean isClosed()
public void close() throws IOException
IOException
Copyright © 2022 Apache Software Foundation. All rights reserved.