Package | Description |
---|---|
org.fastnate.data.files | |
org.fastnate.data.xml |
Modifier and Type | Class and Description |
---|---|
class |
FsDataFile
Represents a data file from the file system.
|
class |
UrlDataFile
Represents a data file from an URL.
|
class |
VfsDataFile
Represents a file from the class path.
|
Modifier and Type | Method and Description |
---|---|
default DataFile |
DataFolder.findFile(String name)
Finds a file in this folder.
|
DataFile |
FsDataFolder.findFile(String name) |
DataFile |
VfsDataFolder.findFile(String fileName) |
Modifier and Type | Method and Description |
---|---|
List<? extends DataFile> |
DataFolder.getFiles()
Finds all files inside this folder.
|
Modifier and Type | Method and Description |
---|---|
protected EntityClass<?> |
GenericDataProvider.findEntityClass(DataFile importFile)
Tries to guess the class of the imported entities from the file or directory name.
|
protected abstract Collection<?> |
GenericDataProvider.importFile(DataFile importFile)
Tries to import the given file.
|
protected abstract boolean |
GenericDataProvider.isImportFile(DataFile file)
Indicates that the given file is imported.
|
private void |
GenericDataProvider.readImportFile(DataFile file) |
Modifier and Type | Method and Description |
---|---|
default void |
DataFolder.forAllFiles(BiConsumer<DataFolder,DataFile> consumer)
Finds all files in this folder and in all sub folders and handles them with the given consumer.
|
default void |
DataFolder.forAllFiles(Consumer<DataFile> consumer)
Finds all files in this folder and in all sub folders and handles them with the given consumer.
|
Modifier and Type | Method and Description |
---|---|
protected Collection<?> |
GenericXmlDataProvider.importFile(DataFile importFile) |
T |
JaxbImporter.importFile(DataFile file)
Imports the entity from the given file.
|
List<Object> |
XmlDataImporter.importFile(DataFile file)
Imports all entites found in the given XML file.
|
protected boolean |
GenericXmlDataProvider.isImportFile(DataFile file) |
private static DataImportException |
XmlDataImporter.wrapRuntimeException(RuntimeException e,
DataFile file,
XMLEvent nextEvent) |
private static DataImportException |
XmlDataImporter.wrapStreamException(XMLStreamException e,
DataFile file) |
Copyright © 2022 fastnate.org. All rights reserved.