Microsoft SDK for Java

getBytes

The getBytes method of the Win32SystemResourceDecoder Class contains the following signatures:

getBytes(int type, int strId)
getBytes(int type, String name)

getBytes(int type, int strId)

Retrieves a byte block of the specified resource type, with the given identifier.

Syntax

public byte[] getBytes(int type, int strId) throws ResourceFormattingException;

Return Value

Returns a bytes block that contains the resource type.

Parameters

type The resource type.
srtId The resource identifier.

Exceptions

ResourceFormattingException if the resource type or identifier are invalid.

getBytes(int type, String name)

Retrieves a byte block of the specified resource type, with the given name.

Syntax

public byte[] getBytes(int type, String name) throws ResourceFormattingException;

Return Value

Returns a bytes block that contains the resource type.

Parameters

type The resource type.
name The resource name.

Exceptions

ResourceFormattingException if the resource type or identifier are invalid.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.