• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

using/providing new character set.

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
lowercase baba
Posts: 13089
67
Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic