|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.univocity.api.io.ReaderProvider
com.univocity.api.io.InputQueue<FileProvider>
com.univocity.api.io.InputFileQueue
public class InputFileQueue
A queue of a sequence of files to be processed. Variables can be used to assign values to each file and provide more control and information about what the file represents (e.g. date the file was produced, some user ID associated with the file, etc)
InputQueue,
FileProvider| Constructor Summary | |
|---|---|
InputFileQueue()
|
|
| Method Summary | |
|---|---|
void |
addFile(File file)
Adds a java.io.File to the queue. |
void |
addFile(File file,
Charset encoding)
Adds a java.io.File to the queue. |
void |
addFile(FileProvider fileProvider)
Adds a FileProvider to the input queue. |
void |
addFile(File file,
String encoding)
Adds a java.io.File to the queue. |
void |
addFile(String filePath)
Adds a path to a file or resource to the queue. |
void |
addFile(String filePath,
Charset encoding)
Adds a path to a file or resource to the queue. |
void |
addFile(String filePath,
String encoding)
Adds a path to a file or resource to the queue. |
protected Reader |
open(FileProvider input)
Opens an input and returns an instanceof Reader which will be used to consume it. |
| Methods inherited from class com.univocity.api.io.InputQueue |
|---|
assignVariablesToLastEntry, assignVariableToLastEntry, getCurrentVariables, getResource, isEmpty, offer, peek, readVariable, readVariable, readVariable, size |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InputFileQueue()
| Method Detail |
|---|
public void addFile(File file)
java.io.File to the queue. The default character encoding will be used to read this file.
file - the file to be added to this input queue.
public void addFile(File file,
String encoding)
java.io.File to the queue.
file - the file to be added to this input queue.encoding - the encoding to be used when reading from the given file
public void addFile(File file,
Charset encoding)
java.io.File to the queue.
file - the file to be added to this input queue.encoding - the encoding to be used when reading from the given filepublic void addFile(String filePath)
filePath - the file to be added to this input queue.
public void addFile(String filePath,
String encoding)
filePath - the file to be added to this input queue.encoding - the encoding to be used when reading from the given file
public void addFile(String filePath,
Charset encoding)
filePath - the file to be added to this input queue.encoding - the encoding to be used when reading from the given filepublic void addFile(FileProvider fileProvider)
FileProvider to the input queue.
fileProvider - the next file to add to the queue.protected Reader open(FileProvider input)
InputQueueReader which will be used to consume it.
Used when InputQueue.getResource() is called.
open in class InputQueue<FileProvider>input - the input to be read
Reader that can be used to consume the given input.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||