CharserProvider question

Discussion in 'Java' started by Martin Gregorie, Nov 13, 2008.

  1. I'm using an extension to the java.nio.charset.spi.CharsetProvider to
    cause the MACINTOSH charset to be treated as an alias for UTF-8. This is
    working well, but is somewhat inflexible since the names are hard coded
    into the class.

    Custom CharsetProviders are only referenced by being named in a META-INF/
    services/java.nio.charset.spi.CharsetProvider file and can only have a no-
    argument constructor.

    So, can anybody suggest a way to parameterise the charset:alias name pair
    so I can configure that at run time?


    --
    martin@ | Martin Gregorie
    gregorie. | Essex, UK
    org |
     
    Martin Gregorie, Nov 13, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. sean
    Replies:
    1
    Views:
    628
    Cowboy \(Gregory A. Beamer\)
    Oct 20, 2003
  2. =?Utf-8?B?UnlhbiBTbWl0aA==?=

    Quick Question - Newby Question

    =?Utf-8?B?UnlhbiBTbWl0aA==?=, Feb 14, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    697
    Iain Norman
    Feb 16, 2005
  3. =?Utf-8?B?YW5kcmV3MDA3?=

    question row filter (more of sql query question)

    =?Utf-8?B?YW5kcmV3MDA3?=, Oct 5, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    975
    Scott Allen
    Oct 6, 2005
  4. Philip Meyer
    Replies:
    0
    Views:
    448
    Philip Meyer
    Nov 30, 2003
  5. Bit Byte
    Replies:
    1
    Views:
    882
    Teemu Keiski
    Jan 28, 2007
Loading...

Share This Page