"Jason E. Stewart" <[EMAIL PROTECTED]> writes:

> Since your existing code uses the SystemId, I would take the
> LocalFileInputSource code, rename the class to
> HansLocalFileInputSource, and change the makeStream() method to return
> a HansBinFileInputStream. And then take the BinFileInputStream code
> and rename it to HansBinFileInputStream, add a private checksum member
> variable and modify the readBytes() method to update that variable
> whenever it reads in data.

Oh, forgot to mention, you'll have to do a couple more things:

* add a private member variable curStream to the InputSource and set
  it in the makeStream() function
* add a getChecksum method to both the InputSource and BinStream
  classes, the InputSource just asks the stream, and the stream
  returns the value of the variable.

jas.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to