org.apache.tools.ant.filters.util

Class JavaClassHelper


public final class JavaClassHelper
extends java.lang.Object

Helper class that filters constants from a Java Class

Method Summary

static StringBuffer
getConstants(byte[] bytes)
Get the constants declared in a file as name=value

Method Details

getConstants

public static final StringBuffer getConstants(byte[] bytes)
            throws IOException
Get the constants declared in a file as name=value

Parameters:
bytes - the class as a array of bytes

Returns:
a StringBuffer contains the name=value pairs


Copyright B) 2000-2005 Apache Software Foundation. All Rights Reserved.