SHOW Signed

net.rim.blackberry.api.mail
Class UnsupportedAttachmentPart

java.lang.Object
  |
  +--net.rim.blackberry.api.mail.BodyPart
        |
        +--net.rim.blackberry.api.mail.UnsupportedAttachmentPart
All Implemented Interfaces:
Part

public final class UnsupportedAttachmentPart
extends BodyPart

Represents an unsupported attachment part. This class is not publically instantiatable.

The content type of this class is always application/octet-stream.

Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.


Inner classes inherited from class net.rim.blackberry.api.mail.BodyPart
BodyPart.ContentType
 
Fields inherited from class net.rim.blackberry.api.mail.BodyPart
_parent, CONTENT_TYPE, CRLF, EMPTY, SEPARATOR
 
Fields inherited from interface net.rim.blackberry.api.mail.Part
ATTACHMENT, INLINE
 
Method Summary
 Category: Signed  Object getContent()
          Retrieves the contents of the Part.
 Category: Signed  InputStream getInputStream()
          Not supported.
 Category: Signed  String getName()
          Retrieves the attachment filename.
 Category: Signed  int getSize()
          Not supported - always returns 0
 Category: Signed  void setContent(Object content)
          Not supported.
 Category: Signed  void writeTo(OutputStream out)
          Writes some basic attachment info to the output stream.
 
Methods inherited from class net.rim.blackberry.api.mail.BodyPart
addHeader, getAllHeaders, getContentType, getHeader, getParent, hasMore, isMimeType, moreRequestSent, removeHeader, setContentType, setHeader
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInputStream

public InputStream getInputStream()
Not supported.
Following copied from interface: net.rim.blackberry.api.mail.Part
Returns:
An input stream of bytes.
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.

setContent

public void setContent(Object content)
Not supported.
Since:
JDE 3.6
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.

getContent

public Object getContent()
Description copied from interface: Part
Retrieves the contents of the Part.

Following copied from interface: net.rim.blackberry.api.mail.Part
Returns:
The contents of a Part.
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.

getSize

public int getSize()
Not supported - always returns 0
Following copied from interface: net.rim.blackberry.api.mail.Part
Returns:
Size in bytes.
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.

writeTo

public void writeTo(OutputStream out)
             throws IOException
Writes some basic attachment info to the output stream. Prepends a crlf separator.
Overrides:
writeTo in class BodyPart
Since:
JDE 3.6
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.

getName

public String getName()
Retrieves the attachment filename.
Returns:
The name of the underlying attachment file.
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.


Copyright 1999-2002 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.