net.dpml.library.info
Class LibraryEncoder
java.lang.Object
net.dpml.library.info.LibraryConstants
net.dpml.library.info.LibraryEncoder
- public final class LibraryEncoder
- extends net.dpml.library.info.LibraryConstants
Utility class used for construction of a module model from an XML source.
- Version:
- 1.1.0
- Author:
- Digital Product Meta Library
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LibraryEncoder
public LibraryEncoder()
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 externalizeoutput
- the output stream
- Throws:
IOException
- if an error occurs during module externalization