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.
boolean encode(String tag, OutputStream data);
Returns true if the encoding operation succeeded; otherwise, returns false.
tag | The encoding type identifier. |
data | The output stream to send the encoded data to. |