Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-11-2008, 06:07 AM
Nicholas Jordan's Avatar
Senior Member
 
Join Date: Jun 2008
Location: Southwest
Posts: 880
Nicholas Jordan is on a distinguished road
[SOLVED] Utf-16
I give up, I was trying to write RTF from a servlet - client insists on using some formats generally accepted in office settings,.... I want to tightly control all aspects of the activity. I gave up when I hit:
Code:
public abstract class Charsetextends Object
I'm giving up for the evening due to obscure and sparse data. Last item of any use was Encodings in Java by a doctorate.

I need to get something done tomorrow, any help is welcome.....I read the proprietary description ~ it is clearly and inexorably on a Death March.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
.
Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-11-2008, 06:44 AM
fishtoprecords's Avatar
Senior Member
 
Join Date: Jun 2008
Posts: 533
fishtoprecords is on a distinguished road
what's the problem? RTF is fullly specified by Microsoft. I'm pretty sure it does not use anything more complex than UTF-8, but I haven't dug into the internals of RTF this century.

Since open source packages can read and write it, there has to be code out there to do the hard work.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 09-11-2008, 09:15 PM
Nicholas Jordan's Avatar
Senior Member
 
Join Date: Jun 2008
Location: Southwest
Posts: 880
Nicholas Jordan is on a distinguished road
search assistance
Quote:
Originally Posted by fishtoprecords View Post
what's the problem? RTF is fullly specified by Microsoft. I'm pretty sure it does not use anything more complex than UTF-8, but I haven't dug into the internals of RTF this century.
I think trying to read the spec turned my head around, I realized later that Java String Class understands all the ( stuff I was trying to do ) and all I need to is write(String.getBytes()); at any point and that should retire the UTF-8 issue completely. Client only uses tools at least a Century Old, so I thought I might start off with Old Bookman typeface / typefont. I took a short training course in client's work that lasted about ten hours, but Cuttham, Burnham and Runn insists on something they are familiar with. You know, keep it all in the family sort of client.

Quote:
Originally Posted by fishtoprecords View Post
Since open source packages can read and write it, there has to be code out there to do the hard work.
I need assistance in finding those packages, I spent good part of an hour looking for useful information. Search was of limited utility, I will glady search on five or six engines if I can get some search terminology that will getter better scatter/gather rates.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
.
Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 09-11-2008, 11:41 PM
fishtoprecords's Avatar
Senior Member
 
Join Date: Jun 2008
Posts: 533
fishtoprecords is on a distinguished road
So you are having problems with precision and recall in your searches, duh.

From wikipedia:

"The free and open-source word processors AbiWord, OpenOffice.org, and KWord can view and edit RTF files."
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 09-12-2008, 12:56 AM
Nicholas Jordan's Avatar
Senior Member
 
Join Date: Jun 2008
Location: Southwest
Posts: 880
Nicholas Jordan is on a distinguished road
write to browser from servlet
Quote:
Originally Posted by fishtoprecords View Post
...AbiWord,...
Code:
// AbiWord const UT_UCSChar * m_InitialBuffer;
doesn't look like Java to me, anyway const keyword binds to the left.
Quote:
Originally Posted by fishtoprecords View Post
OpenOffice.org
Upon finding: Standard ECMA-376 Office Open XML File Formats:
Code:
Dll: C:\PROGRA~1\WinZip\wz32.dll - 09/26/97 07:30 Operation ceased at first binary zero.
Quote:
Originally Posted by fishtoprecords View Post
...KWord,...
Code:
http://kdesvn-build.kde.org/other/svn-checkout-tarballs.php
Where's Tarball Class in 1.5 api docs?

Anyway, back to the point. So far I have had better luck digging for rtf info. I thought an hour ago of writing xml to the browser since all the browsers seem to understand it, but it would probaly parse it and
Code:
DocumentBuilderFactory.newDocumentBuilder()
is a parser, not a generator. I think for the moment I am going to re-read Marty Hall's advice on writing csv to the browser, I have a clear memory of that exporting to what CB&R uses for their document system.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
.
Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 09-12-2008, 07:22 AM
fishtoprecords's Avatar
Senior Member
 
Join Date: Jun 2008
Posts: 533
fishtoprecords is on a distinguished road
For excel, writing CSV is the trivial solution.

Tons easier than RTF, which is really intended for Word documents. It has all this formatting, font, style, and other stuff that spreadsheets don't need.

CSV is near trivial.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +3. The time now is 09:55 AM.


VBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org