org.objectweb.jac.aspects.export
Class ExportAC

java.lang.Object
  extended byorg.objectweb.jac.core.AspectComponent
      extended byorg.objectweb.jac.aspects.export.ExportAC
All Implemented Interfaces:
BaseProgramListener, ExportConf, Serializable

public class ExportAC
extends AspectComponent
implements ExportConf

See Also:
Serialized Form

Field Summary
static String DEFAULT_ENCODING
           
 
Fields inherited from class org.objectweb.jac.core.AspectComponent
application, blockKeywords, cr, currentConfigMethod, currentImports, firstCall, NOT_SHARED, SHARED, startWeavingCCount, startWeavingCount, startWeavingMethod, startWeavingType, systemListener, wrappers
 
Fields inherited from interface org.objectweb.jac.core.BaseProgramListener
FOUND_OBJECT
 
Constructor Summary
ExportAC()
           
 
Method Summary
 void addRoot(String nameExpr)
          Declare some objects as roots to start exporting from.
 void allowExport(String classExpr)
          Allows exporting of some classes
 void denyExport(String classExpr)
          Denies exporting of some classes
 void export(File file)
          Exports all objects to a file with the default charset encoding, which is UTF-8.
 void export(File file, String encoding)
          Exports all objects to a file with the default charset encoding, which is UTF-8.
 void export(OutputStream out)
          Exports all objects to a stream with the default charset encoding, which is UTF-8.
 void export(OutputStream out, String encoding)
          Exports all objects to a stream
 
Methods inherited from class org.objectweb.jac.core.AspectComponent
addWrapper, afterApplicationStarted, afterRunningWrapper, afterWrap, afterWrappeeInit, attr, attrdef, beforeConfiguration, beforeReload, beforeRunningWrapper, beforeWrappeeInit, configure, defines, defineTimer, doRegister, doUnregister, error, getAC, getApplication, getBlockKeywords, getConfigurationMethods, getConfigurationMethodsName, getConfigurationMethodsName, getDefaultConfigs, getName, getNameCounters, getWrappers, init, isConfigurationMethod, isSystemListener, onExit, pointcut, pointcut, pointcut, pointcut, pointcut, pointcut, pointcut, pointcut, setApplication, setAttribute, setAttribute, setAttribute, setSystemListener, simulateUsingNewInstance, unweave, unwrapAll, updateNameCounters, warning, weave, whenClone, whenCloseDisplay, whenConfigured, whenDeleted, whenDeserialized, whenFree, whenGetObjects, whenNameObject, whenObjectMiss, whenReload, whenRemoteInstantiation, whenSerialized, whenTopologyChanged, whenUsingNewClass, whenUsingNewInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_ENCODING

public static final String DEFAULT_ENCODING
See Also:
Constant Field Values
Constructor Detail

ExportAC

public ExportAC()
Method Detail

addRoot

public void addRoot(String nameExpr)
Declare some objects as roots to start exporting from.

Specified by:
addRoot in interface ExportConf
Parameters:
nameExpr - a regular expression matching the name of root objects

allowExport

public void allowExport(String classExpr)
Description copied from interface: ExportConf
Allows exporting of some classes

Specified by:
allowExport in interface ExportConf
Parameters:
classExpr - classes to export

denyExport

public void denyExport(String classExpr)
Description copied from interface: ExportConf
Denies exporting of some classes

Specified by:
denyExport in interface ExportConf
Parameters:
classExpr - classes not to export

export

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

Parameters:
out - stream to export to
encoding - charset encoding to use (UTF-8 ,iso-8859-1,...)
Throws:
IOException
See Also:
export(OutputStream), export(File), export(File,String)

export

public void export(OutputStream out)
            throws IOException
Exports all objects to a stream with the default charset encoding, which is UTF-8.

Parameters:
out - stream to export to
Throws:
IOException
See Also:
export(OutputStream,String), export(File), export(File,String)

export

public void export(File file)
            throws IOException
Exports all objects to a file with the default charset encoding, which is UTF-8.

Parameters:
file - file to export to
Throws:
IOException
See Also:
export(File,String), export(OutputStream), export(OutputStream,String)

export

public void export(File file,
                   String encoding)
            throws IOException
Exports all objects to a file with the default charset encoding, which is UTF-8.

Parameters:
file - file to export to
encoding - charset encoding to use (UTF-8 ,iso-8859-1,...)
Throws:
IOException
See Also:
export(File), export(OutputStream), export(OutputStream,String)