JAPI 0.9.0
Yet another Java API
API Documentation

net.sf.japi.cpp
Class CPreProcessor

java.lang.Object
  extended by net.sf.japi.cpp.CPreProcessor

public class CPreProcessor
extends Object

A C Preprocessor.

Author:
Christian Hujer

Constructor Summary
CPreProcessor()
           
 
Method Summary
 void addIncludePath(File file)
          Add an include path.
 List<File> getIncludePaths()
          Get a list with all include paths.
static void main(String... args)
          Main program.
 void process(InputStream in, OutputStream out)
           
 void process(Reader in, Writer out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CPreProcessor

public CPreProcessor()
Method Detail

addIncludePath

public void addIncludePath(File file)
Add an include path.

Parameters:
file - include path to add
Throws:
IllegalArgumentException - in case file is not a directory

getIncludePaths

public List<File> getIncludePaths()
Get a list with all include paths.

Returns:
list with all include paths

process

public void process(Reader in,
                    Writer out)
             throws IOException
Throws:
IOException

main

public static void main(String... args)
                 throws IOException
Main program.

Parameters:
args - command line arguments
Throws:
IOException

process

public void process(InputStream in,
                    OutputStream out)
             throws IOException
Throws:
IOException

JAPI
Yet another Java API
API Documentation

© 2005-2006 Christian Hujer. All rights reserved. See copyright