Skip to content

Add ability to export data from Java class structure #1

@aparod

Description

@aparod

I started using this library hoping to be able to read an ONIX file into Java, make changes, then output my changes to a different file. Jonix makes the first two tasks easy, but there seems to be no support for exporting data directly from the Java classes. I would like to be able to do something like this:

File outputFile = new File("/path/to/output/file.xml");
PrintStream printStream = new PrintStream(outputFile);

ONIXWriter onixWriter = new ONIXWriter(header, product); // or maybe an ONIXMessage
onixWriter.setOnixVersion(3);
onixWriter.setOutputFormat("xml"); // Or JSON, CSV, etc
onixWriter.setPrintStream(printStream);
onixWriter.write();

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions