FreeHEP API
Version current

org.freehep.util.io
Interface RouteListener


public interface RouteListener

Listener to inform that a specific route of the RoutedInputStream has been found.

Version:
$Id: RouteListener.java,v 1.2 2002/12/05 18:04:56 duns Exp $
Author:
Mark Donszelmann
Source Code:
RouteListener.java

Method Summary
 void routeFound(RoutedInputStream.Route input)
          Route was found, input is supplied.
 

Method Detail

routeFound

public void routeFound(RoutedInputStream.Route input)
                throws IOException
Route was found, input is supplied. If you close the Route, all remaining bytes will be read/discarded up to and including the end marker. If the end marker is null, all bytes from the underling stream will be read. If you just return, the underlying main stream will still return every byte in this route. This way you can just be informed of the start of a route.

Throws:
IOException

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.