net.dpml.station.builder
Class RegistryWriter

java.lang.Object
  extended by net.dpml.station.builder.RegistryWriter

public final class RegistryWriter
extends Object

Test example application sources.

Version:
1.0.3
Author:
Digital Product Meta Library

Constructor Summary
RegistryWriter()
           
 
Method Summary
 void writeRegistryDescriptor(RegistryDescriptor descriptor, OutputStream output, String pad)
          Externalize the part to XML.
protected  void writeValueDirective(Writer writer, ValueDirective value, String pad)
          Write a single value directive.
protected  void writeValueDirectives(Writer writer, ValueDirective[] values, String pad)
          Write a value directive array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegistryWriter

public RegistryWriter()
Method Detail

writeRegistryDescriptor

public void writeRegistryDescriptor(RegistryDescriptor descriptor,
                                    OutputStream output,
                                    String pad)
                             throws IOException
Externalize the part to XML.

Parameters:
descriptor - the registry descriptor
output - the output stream
pad - offset padding to be applied when writing data to the stream
Throws:
IOException - if an IO error occurs

writeValueDirectives

protected void writeValueDirectives(Writer writer,
                                    ValueDirective[] values,
                                    String pad)
                             throws IOException
Write a value directive array.

Parameters:
writer - the stream writer
values - the array of value directives
pad - character offset
Throws:
IOException - if an IO error occurs

writeValueDirective

protected void writeValueDirective(Writer writer,
                                   ValueDirective value,
                                   String pad)
                            throws IOException
Write a single value directive.

Parameters:
writer - the stream writer
value - the value directive
pad - character offset
Throws:
IOException - if an IO error occurs