1 28 29 package com.idaremedia.antx.init; 30 31 import java.io.IOException ; 32 import java.io.OutputStream ; 33 import java.util.Properties ; 34 35 import com.idaremedia.antx.print.DisplayRequest; 36 import com.idaremedia.antx.print.DisplayStrategy; 37 38 49 50 public final class BundlePrinter implements DisplayStrategy 51 { 52 55 public BundlePrinter() 56 { 57 } 58 59 60 67 public void print(final DisplayRequest info, OutputStream os) 68 throws IOException 69 { 70 Object thing = info.getObjectToBeDisplayed(); 71 72 if (thing instanceof UISMBundle) { 73 Properties msgs = ((UISMBundle)thing).newProperties(null); 74 msgs.store(os,info.getName()); 75 msgs.clear(); 76 msgs = null; 77 } 78 } 79 } 80 81 82 | Popular Tags |