How to extract data from ContentHolder in Windc...
2013-03-20 00:00
633 查看
public static String extractContent(ContentHolder contentHolder, String location, ContentRoleType contentRoleType) throws Exception { contentHolder = ContentHelper.service.getContents(contentHolder); QueryResult contents = ContentHelper.service.getContentsByRole(contentHolder, contentRoleType); ApplicationData applicationdata = ((ApplicationData)contents.nextElement()); //It is assumed that there is a content else error String filePath = location + "/" + applicationdata.getFileName(); ContentServerHelper.service.writeContentStream(applicationdata, filePath); return filePath; }
相关文章推荐
- How to extract data from XML nodes in Scala
- Simple VBScript program to extract data from all worksheets in an Excel spreadsheet
- Simple VBScript program to extract data from all worksheets in an Excel spreadsheet
- How to retreive raw post data from HttpServletRequest in java
- How to retreive raw post data from HttpServletRequest in java
- How to get interesting data from Content Providers
- How to use virtual path providers to dynamically load and compile content from virtual paths in
- How to retreive raw post data from HttpServletRequest in java
- How to read data from a file in reverse order?
- How to retreive raw post data from HttpServletRequest in java
- How to create a hex dump from binary data in C++
- How to extract datafiles from asm diskgroup?
- How to use virtual path providers to dynamically load and compile content from virtual paths in
- How to extract datafiles from asm diskgroup?
- How to get data from Oracle DB in silverlight via WCF ?
- How to read data from csv file in c#
- Insight into DOMDocument - how to convert data from XML to array in PHP
- How to remove native support from an Android Project in eclipse because eclipse is showing errors in
- string - How to get the filename without the extension from a path in Python? - Stack Overflow
- Problem 17 - How many letters would be needed to write all the numbers in words from 1 to 1000?