I am to provide a proxy or adapter or facade - I'm unsure what pattern to use - in providing import and export routines from one file format to another.
If you have an opinion on what design pattern best fits this, I would appreciate your feedback.
Thanks.
Why use any particular pattern? Wouldn't an interface do?
interface IFileFormat {
String Name FileFormatName { get; }
InternalFileFormat Import(Stream stream);
void Export(InternalFileFormat internalRepresentation, Stream stream);
}
I would have through strategy would be the best bet, with a different concrete strategy for each format.
Herbie