Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

using/providing new character set.

 
RupeshKumar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12196
35
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!!!
 
RupeshKumar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65218
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic