Bug 308398 - [Browser] ability to set content to arbitrary data type
Summary: [Browser] ability to set content to arbitrary data type
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.6   Edit
Hardware: PC All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2010-04-07 16:44 EDT by Grant Gayed CLA
Modified: 2017-07-28 10:14 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Grant Gayed CLA 2010-04-07 16:44:54 EDT
Currently the only content that can be directly fed to a Browser is text/html via Browser.setText().  It would be good to be able to set this content and have it interpreted as other MIME types (eg.- .xml).

This would require new API of some sort.  One possibility would be to add a MIME type argument to setText().  Another would be something like setContent(String mimeType, byte[] content), if the ability to set binary data makes sense in this context.