openpreserve / jpylyzer

JP2 (JPEG 2000 Part 1) validator and properties extractor. Jpylyzer was specifically created to check that a JP2 file really conforms to the format's specifications. Additionally jpylyzer is able to extract technical characteristics.
http://jpylyzer.openpreservation.org/
Other
69 stars 28 forks source link

Enhancement: Java API from jpylyzer #58

Closed Chlara closed 9 years ago

Chlara commented 9 years ago

Hi Is it possible add a Java API from jpylyzer so that we can use jpylyzer as a module in Java? Thanks! Chlara

anjackson commented 9 years ago

I'm aware of two options. First (and simplest), just wrap jpylyzer as a command line tool and invoke it that way. There's not really much of a disadvantage to doing this, unless you really really need to package everything together into a single Java app (rather than install jpylyzer separately).

The second and more complex option is to run the Python code directly from inside the JVM via Jython. This is about the closest you can get to accessing Python code as a Java API, AFAIK.

Chlara commented 9 years ago

Hi Andy I will try option one with the new jpylyzer.exe. Thanks. Chlara