org.freehep.util.io
Interface RouteListener


public interface RouteListener

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

Version:
$Id: src/main/java/org/freehep/util/io/RouteListener.java 96b41b903496 2005/11/21 19:50:18 duns $
Author:
Mark Donszelmann

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

Method Detail

routeFound

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.

Parameters:
input - stream to read
Throws:
IOException - if read fails


Copyright © 2012. All Rights Reserved.