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:
- @ifdef property, reads everything up to the next @statement if the
property is defined.
- @ifndef property, reads everything up to the next @statement if the
property is not defined.
- @else, corresponding else statement
- @endif, corresponging endif statement
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
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)
read
public int read()
throws IOException
- Throws:
IOException
Copyright © 2000-2004 FreeHEP, All Rights Reserved.