net.dpml.library.info
Class LibraryEncoder

java.lang.Object
  extended by net.dpml.library.info.LibraryEncoder

public final class LibraryEncoder
extends Object

Utility class used for construction of a module model from an XML source.

Version:
1.2.0
Author:
Digital Product Meta Library

Constructor Summary
LibraryEncoder()
           
 
Method Summary
 void export(ModuleDirective module, OutputStream output)
          Write a module directive to an output stream as a portable XML definition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LibraryEncoder

public LibraryEncoder()
Method Detail

export

public void export(ModuleDirective module,
                   OutputStream output)
            throws IOException
Write a module directive to an output stream as a portable XML definition. During export dependencies are limited to runtime concerns (eliminating build and test scoped dependencies). Artifact production is strippped down to a generic type declaration. The resulting XML file is suitable for publication and usage by external projects.

Parameters:
module - the module directive to externalize
output - the output stream
Throws:
IOException - if an error occurs during module externalization