How about depricating

>  public void reset() throws IOException {}

and refactor it to allow making sure the stream was reset?

To avoid break backwards compatibillity with extentions of the TokenStream currently in trunk one could introduce something like this:

>  /**
>   * @param  requireConfirmedReset
> * @throws ResetException An IOException thrown if parameter requireReset
>   *         was set true and the stream could not be reset.
>   */
>  public void reset(boolean requireConfirmedReset)
>      throws IOException, ResetException {
>    reset();
>    if(requireConfirmedReset) throw new ResetException();
>  }


and then depricate this new method at some strategic time to introduce an exception-less solution like:

>  /** @return true if this stream was successfully reset. */
>  public boolean reset() throws IOException { return false; }




     karl

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

Reply via email to