org.objectweb.jac.aspects.export
Class Exporter

java.lang.Object
  |
  +--org.objectweb.jac.aspects.export.Exporter

public class Exporter
extends Object


Constructor Summary
Exporter(Set roots, Set allow, Set deny)
           
 
Method Summary
protected  boolean allowExport(ClassItem cl)
          Tells wether instances of a class should be exported or not
static String escapeChar(char c)
           
static String escapeString(String s)
           
 void export(File file)
          Exports all objects to a file
 void export(OutputStream outStream)
           
 void export(OutputStream outStream, String encoding)
          Exports all objects to a stream
 void export(Writer out, Object o, String name, String opath)
          Exports an object to a stream
protected  void writeValue(Writer out, Object value, String opath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Exporter

public Exporter(Set roots,
                Set allow,
                Set deny)
Method Detail

export

public void export(File file)
            throws IOException
Exports all objects to a file

IOException

export

public void export(OutputStream outStream)
            throws IOException
IOException

export

public void export(OutputStream outStream,
                   String encoding)
            throws IOException
Exports all objects to a stream

IOException

escapeChar

public static String escapeChar(char c)

escapeString

public static String escapeString(String s)

allowExport

protected boolean allowExport(ClassItem cl)
Tells wether instances of a class should be exported or not


export

public void export(Writer out,
                   Object o,
                   String name,
                   String opath)
            throws IOException
Exports an object to a stream

Parameters:
out - the stream to which to export
o - the object to export
name - name of the object to export
IOException

writeValue

protected void writeValue(Writer out,
                          Object value,
                          String opath)
                   throws IOException
IOException