gnu.crypto.keyring
Class BinaryDataEntry
public class BinaryDataEntry
A binary data entry is a primitive entry that simply contains some amount
of arbitrary binary data and an optional content type.
$Revision: 1.3 $
static BinaryDataEntry | decode(DataInputStream in)
|
protected void | encodePayload() - This method is called of subclasses when the payload data needs to be
created.
|
String | getContentType() - Returns the content type of this entry, or
null if this
property is not set.
|
byte[] | getData() - Returns this object's data field.
|
TYPE
public static final int TYPE
BinaryDataEntry
public BinaryDataEntry(String contentType,
byte[] data,
Date creationDate,
Properties properties)
Creates a new binary data entry.
contentType
- The content type of this entry. This parameter can
be null
if no content type is needed.data
- The data.creationDate
- The creation date.properties
- This entry's properties.
decode
public static BinaryDataEntry decode(DataInputStream in)
throws IOException
encodePayload
protected void encodePayload()
This method is called of subclasses when the payload data needs to be
created.
- encodePayload in interface Entry
getContentType
public String getContentType()
Returns the content type of this entry, or null
if this
property is not set.
getData
public byte[] getData()
Returns this object's data field.
Copyright © 2001, 2002, 2003
Free Software Foundation,
Inc. All Rights Reserved.