FileDocCategorySizeDatePackage
PrimeReader.javaAPI DocExample429Sun Mar 28 07:20:20 BST 1999None

PrimeReader

public class PrimeReader extends Thread

Fields Summary
DataInputStream
theInput
Constructors Summary
public PrimeReader(InputStream in)

    theInput = new DataInputStream(in);
  
Methods Summary
public voidrun()


    try {
      while (true) {
        System.out.println(theInput.readInt());
      }
    }
    catch (IOException e) {
      // probably just an end of stream exception
    }