@CallerSensitive
public Field[] getFields () throws SerialException

Returns an array of Field objects that contains each field of the object that this helper class is serializing.

Returns:  an array of Field objects

Exceptions:
SerialException    if an error is encountered accessing the serialized object
SecurityException    If a security manager, s, is present and the caller's class loader is not the same as or an ancestor of the class loader for the class of the object being serialized and invocation of s.checkPackageAccess() denies access to the package of that class.

See also:
Class.getFields