FreeHEP API
Version v1.2

org.freehep.util.io
Class ConditionalInputStream

java.lang.Object
  |
  +--java.io.InputStream
        |
        +--org.freehep.util.io.ConditionalInputStream

public class ConditionalInputStream
extends InputStream

The ConditionalInputStream reads a stream and filters certain parts depending of properties and statements in the input.

The following statements, all start with the @-sign, are allowed:

The @-sign itself must be escaped by a backslash, if used in the text followed by any of the keywords described above and no action should be taken.

IMPORTANT: inherits from InputStream rather than FilterInputStream so that the correct read(byte[], int, int) method is used.

Version:
$Id: ConditionalInputStream.java,v 1.3 2002/08/05 16:40:45 duns Exp $
Author:
Mark Donszelmann

Constructor Summary
ConditionalInputStream(InputStream input, Properties defines)
           
 
Method Summary
 int read()
           
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConditionalInputStream

public ConditionalInputStream(InputStream input,
                              Properties defines)
Method Detail

read

public int read()
         throws IOException
Specified by:
read in class InputStream
IOException

FreeHEP API
Version v1.2

Copyright © 2000-2003 FreeHEP, All Rights Reserved.