File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Java in General
Bookmark "using/providing new character set." Watch "using/providing new character set." New topic

using/providing new character set.


Joined: Mar 21, 2006
Posts: 2
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

Joined: Oct 02, 2003
Posts: 11955


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

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

Joined: Jan 10, 2002
Posts: 63844

"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.

JavaRanch Sheriff

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: using/providing new character set.
It's not a secret anymore!