1 54 package org.w3c.tidy; 55 56 import java.io.OutputStream ; 57 import java.io.UnsupportedEncodingException ; 58 59 60 65 public final class OutFactory 66 { 67 68 71 private OutFactory() 72 { 73 } 75 76 82 public static Out getOut(Configuration config, OutputStream stream) 83 { 84 try 85 { 86 return new OutJavaImpl(config, config.getOutCharEncodingName(), stream); 87 } 88 catch (UnsupportedEncodingException e) 89 { 90 throw new RuntimeException ("Unsupported encoding: " + e.getMessage()); 91 } 92 } 93 } 94 | Popular Tags |