Patches and unit tests welcome! Make sure you start from trunk. Gary
On Tue, Jan 29, 2013 at 1:47 PM, Steve Grennan <stevegren...@ymail.com>wrote: > I know this was considered several years ago, and a simpler alternative > was chosen (the "urlSafe" boolean switch), but it would be helpful to some > of us if we could replace the standard RFC 2045 alphabets with a > nonstandard mapping and PAD character. There are applications where a large > amount of legacy code (Java and other) and stored data use an old, > nonstandard encoding, and it would be better to at least take advantage of > the Apache code, so that people aren't always rewriting it (and creating > new bugs) when moving to a new platform. > > As you might expect, the nonstandard features are the last two encoding > chars, and the PAD char (hyphen instead of equals). If we could set those > three values, we could use the code. We can't just subclass Base64 because > the tables are private. And we'd need to adjust the decoding table, too, > unlike URL-safe mode, because the static table uses the RFC values. > > Any chance of adding a constructor that would let us specify nonstandard > values for those things? -- E-Mail: garydgreg...@gmail.com | ggreg...@apache.org JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0 Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK Blog: http://garygregory.wordpress.com Home: http://garygregory.com/ Tweet! http://twitter.com/GaryGregory