home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 1999 April / DPPCPRO0499.ISO / April / Notes / 50b2wic.exe / DATA1.CAB / NotesProgramFilesJavaSupport / icsclass.jar / javax / servlet / ServletOutputStream.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-11-15  |  2.0 KB  |  88 lines

  1. package javax.servlet;
  2.  
  3. import java.io.CharConversionException;
  4. import java.io.IOException;
  5. import java.io.OutputStream;
  6.  
  7. public abstract class ServletOutputStream extends OutputStream {
  8.    protected ServletOutputStream() {
  9.    }
  10.  
  11.    public void print(String var1) throws IOException {
  12.       int var2 = var1.length();
  13.  
  14.       for(int var3 = 0; var3 < var2; ++var3) {
  15.          char var4 = var1.charAt(var3);
  16.          if ((var4 & '\uff00') != 0) {
  17.             throw new CharConversionException("Not an ISO 8859/1 character:  " + var4);
  18.          }
  19.  
  20.          ((OutputStream)this).write(var4);
  21.       }
  22.  
  23.    }
  24.  
  25.    public void print(boolean var1) throws IOException {
  26.       this.print(var1 ? "true" : "false");
  27.    }
  28.  
  29.    public void print(char var1) throws IOException {
  30.       this.print(String.valueOf(var1));
  31.    }
  32.  
  33.    public void print(int var1) throws IOException {
  34.       this.print(String.valueOf(var1));
  35.    }
  36.  
  37.    public void print(long var1) throws IOException {
  38.       this.print(String.valueOf(var1));
  39.    }
  40.  
  41.    public void print(float var1) throws IOException {
  42.       this.print(String.valueOf(var1));
  43.    }
  44.  
  45.    public void print(double var1) throws IOException {
  46.       this.print(String.valueOf(var1));
  47.    }
  48.  
  49.    public void println() throws IOException {
  50.       this.print("\r\n");
  51.    }
  52.  
  53.    public void println(String var1) throws IOException {
  54.       this.print(var1);
  55.       this.println();
  56.    }
  57.  
  58.    public void println(boolean var1) throws IOException {
  59.       this.print(var1);
  60.       this.println();
  61.    }
  62.  
  63.    public void println(char var1) throws IOException {
  64.       this.print(var1);
  65.       this.println();
  66.    }
  67.  
  68.    public void println(int var1) throws IOException {
  69.       this.print(var1);
  70.       this.println();
  71.    }
  72.  
  73.    public void println(long var1) throws IOException {
  74.       this.print(var1);
  75.       this.println();
  76.    }
  77.  
  78.    public void println(float var1) throws IOException {
  79.       this.print(var1);
  80.       this.println();
  81.    }
  82.  
  83.    public void println(double var1) throws IOException {
  84.       this.print(var1);
  85.       this.println();
  86.    }
  87. }
  88.