org.freehep.util.io
Class ConditionalInputStream
java.lang.Object
  
java.io.InputStream
      
org.freehep.util.io.ConditionalInputStream
- All Implemented Interfaces: 
 - Closeable
 
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
 
 &at;-sign, are allowed:
 
 
 - @ifdef property, reads everything up to the next
- Version:
 
  - $Id: ConditionalInputStream.java 8584 2006-08-10 23:06:37Z duns $
 
- Author:
 
  - Mark Donszelmann
 
 
| 
Method Summary | 
 int | 
read()
 
            | 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
ConditionalInputStream
public ConditionalInputStream(InputStream input,
                              Properties defines)
- Creates a Conditional Input Stream from given stream.
- Parameters:
 input - stream to read fromdefines - set of properties to be used in ifdefs
 
read
public int read()
         throws IOException
- Specified by:
 read in class InputStream
 
- Throws:
 IOException
 
Copyright © 2000-2007 FreeHEP. All Rights Reserved.