Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Raphael
histream
Commits
2e5c87de
Commit
2e5c87de
authored
Dec 20, 2016
by
R.W.Majeed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Standalone executable main method for processing import descriptors
parent
889e117c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
histream-import/src/main/java/de/sekmi/histream/etl/XMLExport.java
...import/src/main/java/de/sekmi/histream/etl/XMLExport.java
+36
-0
No files found.
histream-import/src/main/java/de/sekmi/histream/etl/XMLExport.java
0 → 100644
View file @
2e5c87de
package
de.sekmi.histream.etl
;
import
java.nio.file.Paths
;
import
de.sekmi.histream.impl.Meta
;
import
de.sekmi.histream.io.GroupedXMLWriter
;
import
de.sekmi.histream.io.Streams
;
/**
*
* Read and process a specified import descriptor and output the HIStream XML format
*
* @author R.W.Majeed
*
*/
public
class
XMLExport
{
/**
* Read and process a specified import descriptor and output the HIStream XML format
* @param args single argument with file name
* @throws Exception error
*/
public
static
void
main
(
String
[]
args
)
throws
Exception
{
if
(
args
.
length
!=
1
){
System
.
err
.
println
(
"Usage: XMLExport <import-descriptor-file>"
);
System
.
exit
(-
1
);
}
ETLObservationSupplier
suppl
=
ETLObservationSupplier
.
load
(
Paths
.
get
(
args
[
0
]).
toUri
().
toURL
());
GroupedXMLWriter
writer
=
new
GroupedXMLWriter
(
System
.
out
);
Meta
.
transfer
(
suppl
,
writer
);
Streams
.
transfer
(
suppl
,
writer
);
suppl
.
close
();
writer
.
close
();
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment