Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
histream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
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
Hide 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