Factory method pattern: Difference between revisions

Content deleted Content added
AmunRa84 (talk | contribs)
Line 38:
This method has the advantage of abstracting the [[file type]] from the class that calls this ImageReader, but as the number of file types supported gets larger, the code will quickly become huge, unwieldy and hard to maintain.
 
===A better, but not perfect, solution=== dsdfdsfdsfsdfsdffsdafsfsd
 
Another solution that seems possible is to have a separate object for each of these file types:
Line 53:
public DecodedImage getDecodedImage() {
return decodedImage;dsf
}
}