home *** CD-ROM | disk | FTP | other *** search
Java Source | 1997-09-05 | 745 b | 34 lines |
- /**
- * UseTableStream: Hook up the HTMLTableStream object to the Framework's Response
- * object, which is an OutputStream.
- */
-
- package IISSample;
-
- import java.io.*;
- import aspcomp.*;
-
-
- public class UseTableStream
- {
-
- public void makeTable()
- {
- Response response = AspContext.getResponse();
-
- // Consider: change to not use StringBufferInputStream
- StringBufferInputStream bufStream = new
- StringBufferInputStream("1 2 3 4 \n 5 6 7 8 \n 9 10 11 12 \n");
-
- HTMLTableStream ts = new HTMLTableStream(bufStream);
-
- ts.setCols(4);
- ts.setBorderWidth(2);
- ts.setCellSpacing(3);
- ts.setBorderColor("Green");
-
- ts.OutputTable(response);
- }
-
- }
-