CS 424524: Introduction to Java Programming - PowerPoint PPT Presentation

1 / 4
About This Presentation
Title:

CS 424524: Introduction to Java Programming

Description:

public synchronized void flush() throws IOException ... throws IOException. public synchronized void write(int b) throws IOException. Next time ... – PowerPoint PPT presentation

Number of Views:21
Avg rating:3.0/5.0
Slides: 5
Provided by: dyes
Category:

less

Transcript and Presenter's Notes

Title: CS 424524: Introduction to Java Programming


1
CS 424/524 Introduction to Java Programming
  • Lecture 22
  • Spring 2002
  • Department of Computer Science
  • University of Alabama
  • Joel Jones

2
Overview
  • Questions
  • I/O exercise A tale of bad programming
  • Exercise for next time
  • Reading for next time

3
Initial Exercise (flawed)
package java.io public class FixedBufferOutputSt
ream extends FilterOutputStream private
void init(BufferedOutputStream bos) public
FixedBufferOutputStream(BufferedOutputStream
bos) public synchronized void flush()
throws IOException public synchronized void
write(byte b, int off,
int len) throws IOException
public synchronized void write(int b) throws
IOException
4
Next time
  • Try writing a class that keeps the last n bytes
    of output
  • Chapter 6 of the textbook
  • Java Tutorial Swing Features and Concepts
  • http//java.sun.com/docs/books/tutorial/uiswing/ov
    erview/index.html
Write a Comment
User Comments (0)
About PowerShow.com