com.supermap.services.components
Interface DataExporter
-
public interface DataExporterData pushing manager.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface and Description static interfaceDataExporter.OutputProgressCallback
-
Method Summary
Methods Modifier and Type Method and Description java.lang.Stringadd(java.lang.String path)Sets the data path.booleancomplete()Returns true if data push is complete.java.lang.StringgetId()Gets the data pushing task IDvoidoutputAsZip(java.lang.String dataItemId, java.io.OutputStream out, FileVerificationInfo[] infos)Packs the data that needs to be pushed.voidprepare()Push data.voidsetOutputProgressCallback(DataExporter.OutputProgressCallback value)Sets the callback for the progress of the push.voiduntilComplete()Waiting for data to be push completed.
-
-
-
Method Detail
-
add
java.lang.String add(java.lang.String path)
Sets the data path.
- Parameters:
path-- Returns:
-
untilComplete
void untilComplete() throws java.io.IOExceptionWaiting for data to be push completed.
- Throws:
java.io.IOException
-
getId
java.lang.String getId()
Gets the data pushing task ID
- Returns:
-
outputAsZip
void outputAsZip(java.lang.String dataItemId, java.io.OutputStream out, FileVerificationInfo[] infos) throws java.io.IOExceptionPacks the data that needs to be pushed.
- Parameters:
dataItemId-out-infos-- Throws:
java.io.IOException
-
prepare
void prepare()
Push data.
-
complete
boolean complete()
Returns true if data push is complete.
- Returns:
-
setOutputProgressCallback
void setOutputProgressCallback(DataExporter.OutputProgressCallback value)
Sets the callback for the progress of the push.
- Parameters:
value-
-
-