org.apache.tools.ant.filters.util

Class JavaClassHelper

public final class JavaClassHelper extends Object

Helper class that filters constants from a Java Class
Method Summary
static StringBuffergetConstants(byte[] bytes)
Get the constants declared in a file as name=value

Method Detail

getConstants

public static final StringBuffer getConstants(byte[] bytes)
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

Throws: IOException if an error occurs

Copyright