Hi All, I am currently trying to understand the Builder design pattern. I am not able to understand its RTF text converter example. Please could anyone explain me the text converter example in java.
Thanks
Ilja Preuss
author
Sheriff
Joined: Jul 11, 2001
Posts: 14112
posted
0
Which text converter example?
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Siddharth Bhargava
Ranch Hand
Joined: Feb 23, 2007
Posts: 227
posted
0
The RTF Text Format Converter example. RTF reader should be able to convert RTF to many text format. The example which is given in GoF book.
I had already seen this site. But here ASCIIText and Document have not been implemented. So its not that clear. If anywhere this example is complete in Java then please do provide me the same. Also if there is any real world example of prototype pattern in Java then please do provide me that also.
Thanks in advance.
Jimmy Clark
Ranch Hand
Joined: Apr 16, 2008
Posts: 2187
posted
0
What don't you understand about the Builder design pattern? [ October 15, 2008: Message edited by: James Clark ]
Siddharth Bhargava
Ranch Hand
Joined: Feb 23, 2007
Posts: 227
posted
0
I understood the builder design pattern but I was looking for a real time example of it so that I am able to understand the concept behind it. Please provide me a real time (java code) example of builder design pattern so that I am able to understand the concept behind it through code. . If possible please provide me the RTF format converter example (Complete java code). I saw the example in a website but the example was not complete.
Thanks in advance.
Ilja Preuss
author
Sheriff
Joined: Jul 11, 2001
Posts: 14112
posted
0
Originally posted by Siddharth Bhargava: I had already seen this site. But here ASCIIText and Document have not been implemented. So its not that clear.
I don't understand how those implementations are relevant to understanding the Builder pattern.
Jimmy Clark
Ranch Hand
Joined: Apr 16, 2008
Posts: 2187
posted
0
I understood the builder design pattern but I was looking for a real time example of it so that I am able to understand the concept behind it.
If you say that you understand the Builder pattern, then you surely understand the concepts of the pattern. It is a fairly simple design pattern, you should be able to implement it very easily.