FreeHEP API
Version current

org.freehep.util.io
Class ConditionalInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended byorg.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
Source Code:
ConditionalInputStream.java

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
Throws:
IOException

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.