home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 139 / dpcs0999.iso / Web / CFserver / data1.cab / Java / CFJava.cab / CFJavaRuntime.cab / allaire / util / template / TemplateOutput.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-03-31  |  901 b   |  22 lines

  1. package allaire.util.template;
  2.  
  3. import java.io.DataOutputStream;
  4. import java.io.IOException;
  5. import java.io.OutputStream;
  6.  
  7. public class TemplateOutput {
  8.    private DataOutputStream m_output;
  9.  
  10.    public TemplateOutput(OutputStream var1) {
  11.       this.m_output = new DataOutputStream(var1);
  12.    }
  13.  
  14.    public void write(String var1) throws TemplateException {
  15.       try {
  16.          this.m_output.writeBytes(var1);
  17.       } catch (IOException var4) {
  18.          throw new TemplateException(1004, "IO error occurred while attempting to write template " + "results to stream (" + ((Throwable)var4).getMessage() + ").");
  19.       }
  20.    }
  21. }
  22.