Currently this allows us to create strings from the various forms of string data (byte[], char[], String).
In the future we will probably wish to implement something like the Flyweight pattern to prevent excess garbage creation.
It might be nice to split this in half, one for logical and one for physical access. That is, one suitable for clients creating references from high level data such as a DOM, and one suitable for clients creating references from low level data such as a WBXML byte stream. This would make it easier for the client to understand which methods were suitable given the use they were making of the factory.
|
|