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 these parts is always "application/octet-stream".

Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

Since:
JDE 3.6.0

Inner Class Summary
 
Inner classes inherited from class net.rim.blackberry.api.mail.BodyPart
BodyPart.ContentType
 
Field Summary
 
Fields inherited from class net.rim.blackberry.api.mail.BodyPart
CONTENT_TYPE, CRLF, EMPTY, SEPARATOR
 
Fields inherited from interface net.rim.blackberry.api.mail.Part
ATTACHMENT, INLINE
 
Method Summary
 Category: Signed  Object getContent()
          Retrieves this attachment part's content.
 Category: Signed  InputStream getInputStream()
          Retrieves an input stream containing this attachment part's data.
 Category: Signed  String getName()
          Retrieves this attachment part's filename.
 Category: Signed  int getSize()
          Retrieves the size of this attachment part's content.
 Category: Signed  void setContent(Object content)
          Sets this attachment part's content from provided object.
 Category: Signed  void writeTo(OutputStream out)
          Writes basic information about this attachment part to provided 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

getContent

public Object getContent()
Retrieves this attachment part's content.
Returns:
null
Since:
JDE 3.6.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

getInputStream

public InputStream getInputStream()
Retrieves an input stream containing this attachment part's data.

Not currently supported.

Returns:
Null; sub-classes must override this method to provide expanded functionality.
Since:
JDE 3.6.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

getName

public String getName()
Retrieves this attachment part's filename.
Returns:
Filename of the underlying attachment data.
Since:
JDE 3.6.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

getSize

public int getSize()
Retrieves the size of this attachment part's content.

Not currently supported.

Returns:
0; sub-classes must override this method to provide expanded functionality.
Since:
JDE 3.6.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

setContent

public void setContent(Object content)
Sets this attachment part's content from provided object.

Not currently supported.

Parameters:
content - Object to provide content; must be an UnknownMimePartModel or treatable as such.
Since:
JDE 3.6.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

writeTo

public void writeTo(OutputStream out)
             throws IOException
Writes basic information about this attachment part to provided output stream.

This method first writes two CRLF bytes, and then writes out the filename bytes for this attachment part to the output stream.

Overrides:
writeTo in class BodyPart
Parameters:
out - Output stream to receive written bytes.
Since:
JDE 3.6.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.



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