|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jac.aspects.export.Exporter
Constructor Summary | |
Exporter(Collection roots,
Collection allow,
Collection deny)
Creates a new exporter. |
|
Exporter(String[] roots,
String[] allow,
String[] deny)
|
Method Summary | |
protected boolean |
allowExport(ClassItem cli)
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)
Exports all objects to a stream, using UTF-8 encoding. |
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 |
public Exporter(String[] roots, String[] allow, String[] deny)
Exporter(Collection,Collection,Collection)
public Exporter(Collection roots, Collection allow, Collection deny)
roots
- collection of String naming root objects to start export from.allow
- collection of String naming classes to exportdeny
- collection of String naming classes not to exportExporter(String[],String[],String[])
Method Detail |
public void export(File file) throws IOException
IOException
public void export(OutputStream outStream) throws IOException
IOException
public void export(OutputStream outStream, String encoding) throws IOException
IOException
public static String escapeChar(char c)
public static String escapeString(String s)
protected boolean allowExport(ClassItem cli)
cli
- a class item
public void export(Writer out, Object o, String name, String opath) throws IOException
out
- the stream to which to exporto
- the object to exportname
- name of the object to export
IOException
protected void writeValue(Writer out, Object value, String opath) throws IOException
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |