View Javadoc
1   /**
2    * 
3    */
4   package de.japrost.excerpt;
5   
6   import java.util.Properties;
7   
8   
9   /**
10   *
11   */
12  public class PropertySpacerBuilder {
13  
14  	Spacer buildSpacer(final String prefix, final Properties props) {
15  		int expand = 0;
16  		expand = Integer.parseInt(props.getProperty(prefix + "expand", "" + expand));
17  		System.out.println("--- Creating Spacer ---");
18  		System.out.println("Expand :" + expand);
19  		Spacer spacer = new Spacer(expand);
20  		System.out.println("--- END Spacer ---");
21  		return spacer;
22  	}
23  }