aspose file tools*
The moose likes OO, Patterns, UML and Refactoring and the fly likes Builder design pattern example Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "Builder design pattern example" Watch "Builder design pattern example" New topic
Author

Builder design pattern example

Siddharth Bhargava
Ranch Hand

Joined: Feb 23, 2007
Posts: 266
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
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: 266
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.
albert smith
Greenhorn

Joined: Sep 19, 2008
Posts: 4
There is a RTF example explained here:
http://www.oodesign.com/builder-pattern.html
Siddharth Bhargava
Ranch Hand

Joined: Feb 23, 2007
Posts: 266
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
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: 266
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
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
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.
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Another Example - Builder Pattern
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Check out wikipedia example.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Builder design pattern example