title: Convert java object in to pipe delimited string
body: <p>Suppose there is class:</p>
  
  <pre><code>public class Employee 
  {
     private String name;
     private String age;
     private String birthdate;
     private String location;
  }
  </code></pre>
  
  <p>We have an object with values name = John, age = 25, birthdate = September 10, location = houston. Is there an easy way or an efficient way to convert that object into a pipe delimited string as shown below? </p>
  
  <pre><code>John|25|September 10|houston
  </code></pre>
  
  <p>I could think of only one solution - just appending the values of members of object into a string. I want to know if there is any better way to do this.</p>