org.freehep.util.io
Class ConditionalInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.freehep.util.io.DecodingInputStream
          extended by org.freehep.util.io.ConditionalInputStream
All Implemented Interfaces:
Closeable

public class ConditionalInputStream
extends DecodingInputStream

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:

The &at;-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.

Author:
Mark Donszelmann

Constructor Summary
ConditionalInputStream(InputStream input, Properties defines)
          Creates a Conditional Input Stream from given stream.
 
Method Summary
 int read()
           
 
Methods inherited from class org.freehep.util.io.DecodingInputStream
read
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, 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)
Creates a Conditional Input Stream from given stream.

Parameters:
input - stream to read from
defines - set of properties to be used in ifdefs
Method Detail

read

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


Copyright © 2012. All Rights Reserved.