Classes

Holder Classes

The various holder classes allow Java to support out parameters. Because Java only passes objects by value, it has no way to let you modify a parameter value and pass the modified value back. A holder contains a value member variable that contains the holder's value.

value

The value member variable contains the value that this holder holds. The type of the variable is different for each type of holder. For an AnyHolder, the data type is Any. For an IntHolder, the type is int.

_read
public void _read(InputStream input)

Populates the holder data from the specified stream.

_type
public TypeCode _type()

Returns a TypeCode describing the type of object held by this holder.

 _write public void _write(OutputStream output) ...

Get Special Edition Using Java™ 2 Enterprise Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.