public class DataHubImpExResourceFactory extends Object implements ImpExResourceFactory
| Constructor and Description |
|---|
DataHubImpExResourceFactory() |
| Modifier and Type | Method and Description |
|---|---|
ImpExResource |
createResource(ItemImportTaskData ctx)
Creates an import resource for the specified import context.
|
protected InputStream |
createScriptStream(ItemImportTaskData ctx)
Creates an input stream to read the final ImpEx script content, which includes the data, because the original
script does not contain actual data.
|
protected List<ImpExFragment> |
extractFragments(ItemImportTaskData ctx)
Reads ImpEx script from the input stream and splits it into the logical fragments based on the script content.
|
protected FragmentReader |
getFragmentReader()
Retrieves the fragment reader to be used by this factory for reading the ImpEx script.
|
void |
setFragmentReader(FragmentReader r)
Specifies a reader to use for reading the ImpEx script.
|
public ImpExResource createResource(ItemImportTaskData ctx) throws ImpExException
ImpExResourceFactorycreateResource in interface ImpExResourceFactoryctx - context of the import task, which contains content to import and any information relevant to the import
process.ImpExException - if the context does not contain a valid ImpEx script.protected InputStream createScriptStream(ItemImportTaskData ctx) throws ImpExException
ImpExException - if the script is invalid or reading failed.protected List<ImpExFragment> extractFragments(ItemImportTaskData ctx) throws ImpExException
ctx - a data object containing ImpEx data and errorsImpExException - if the script is invalid or reading failed.protected FragmentReader getFragmentReader()
public void setFragmentReader(FragmentReader r)
r - a reader to use.Copyright © 2017 SAP SE. All Rights Reserved.