Microsoft SDK for Java

encode

This method of the IEncodablePermission Interface encodes the contents of this permission object and sends the encoded data to the specified stream. The tag parameter specifies the type of encoding that should be used.

Syntax

boolean encode(String tag, OutputStream data);

Return Value

Returns true if the encoding operation succeeded; otherwise, returns false.

Parameters

tag The encoding type identifier.
data The output stream to send the encoded data to.

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