be.re.odf
Class ODFToEPub

java.lang.Object
  extended by be.re.odf.ODFToEPub

public class ODFToEPub
extends java.lang.Object

Converts an ODF-document to ePub. Currently only text-documents are supported.

Author:
Werner Donné

Constructor Summary
ODFToEPub()
           
 
Method Summary
static void convert(java.io.File in, java.io.OutputStream out, java.lang.String defaultIdentifier)
           
static void main(java.lang.String[] args)
          Usage: be.re.odf.ODFToEPub [-h|--help] [in_file [out_file]]
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ODFToEPub

public ODFToEPub()
Method Detail

convert

public static void convert(java.io.File in,
                           java.io.OutputStream out,
                           java.lang.String defaultIdentifier)
                    throws java.io.IOException
Parameters:
in - the ODF-document
out - the ePub-document. The stream is closed.
defaultIdentifier - the default book identifier. It may be null in which case a UUID will be generated. The default identifier is only used when the document doesn't contain an identifier. First the dc:identifier property is taken from the document. If that doesn't exist the custom property "identifier" will be tried and if that fails the default identifier is used.
Throws:
java.io.IOException

main

public static void main(java.lang.String[] args)
Usage: be.re.odf.ODFToEPub [-h|--help] [in_file [out_file]]