O'Reilly logo

Special Edition Using Java™ 2 Enterprise Edition by Mark Wutka

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Classes

BinaryRefAddr

The BinaryRefAddr class holds a reference to an address in binary form (that is, as an array of bytes instead of a string).

Constructor
public BinaryRefAddr(String addrType, byte[] data)
public BinaryRefAddr(String addrType, byte[] data, int offset, int count)

Creates a new BinaryRefAddr with the specified address type and data bytes. You can optionally specify an offset and a count to use only a portion of the data bytes.

getContent
public Object getContent()

Returns the contents of the address. Although the return type of the method is Object, this method returns a byte array. The array you get back is the actual content of the object, not a copy, so changing values in the array affects the object's content.

Binding ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required