File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes using/providing new character set. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "using/providing new character set." Watch "using/providing new character set." New topic
Author

using/providing new character set.

RupeshKumar
Greenhorn

Joined: Mar 21, 2006
Posts: 2
Hi
I'm trying to write a class which will be able to read a file written in any format, provided its encoding informaiton. I've used java.nio.charset.Charset and related classes to do the same.
My problem is that, this class(java.nio.charset.Charset) provides only a number of formats(if charset.jar is also taken into account, then some more). I want to provide my own characters/encoding. I looked for the same in JDK 5.0 documentation but I could only find java.nio.charset.CharsetProvider whose use I don't know.
Please help me and guide me how to provide extensions for charset or any useful link.

Thanks in advance.
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11495
    
  16

RupeshKumar,

perhaps you missed our naming policy on the way in. Basically, we require a real sounding first AND last name, separated by a space. please go here and update your profile.

Thanks, and see you 'round the Ranch!!!


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
RupeshKumar
Greenhorn

Joined: Mar 21, 2006
Posts: 2
I expected answer to more critical problems in life, but since you asked, I'm Rupesh Kumar and someone else had registered with this name, so I had to take this type of name.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61756
    
  67

"RupeshKumar", fred's request that you change your display name to adhere to JavaRanch standards was not a suggestion. Valid display names are mandatory for participation on the Ranch. Please change your display name as instructed prior to your next post.

The fact that someone else has the same name as a display name is not a factor.

Be aware that accounts with invalid display names are disabled.

bear
JavaRanch Sheriff


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: using/providing new character set.