org.jacorb.idl
Class GlobalInputStream
java.lang.Object
org.jacorb.idl.GlobalInputStream
- public class GlobalInputStream
- extends java.lang.Object
This class deals with IDL input files and their inclusion relationships.
- Version:
- $Id: GlobalInputStream.java,v 1.21 2004/02/13 12:34:33 nick.cross Exp $
- Author:
- Gerald Brose
Method Summary |
static java.io.File |
currentFile()
|
static java.io.InputStream |
currentStream()
|
static void |
include(java.lang.String fname,
int lookahead,
boolean useIncludePath)
|
static boolean |
includeState()
|
static void |
init()
|
static void |
insert(java.lang.String str)
|
static boolean |
isMoreRecentThan(java.io.File other)
Test if this input stream (or rather the underlying IDL file)
is more recent (was modified at a later time than) another
file. |
static int |
read()
|
static void |
setIncludePath(java.lang.String path)
|
static void |
setInput(java.lang.String fname)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GlobalInputStream
public GlobalInputStream()
init
public static void init()
setInput
public static void setInput(java.lang.String fname)
throws java.io.IOException
- Throws:
java.io.IOException
isMoreRecentThan
public static boolean isMoreRecentThan(java.io.File other)
- Test if this input stream (or rather the underlying IDL file)
is more recent (was modified at a later time than) another
file. (Used, e.g., to determine if code has been previosuly
generated from an IDL file).
- Parameters:
other
- the file to compare this stream against
- Returns:
- true, if this stream's IDL file is more recent than the other file .
includeState
public static boolean includeState()
insert
public static void insert(java.lang.String str)
include
public static void include(java.lang.String fname,
int lookahead,
boolean useIncludePath)
throws java.io.FileNotFoundException
- Throws:
java.io.FileNotFoundException
setIncludePath
public static void setIncludePath(java.lang.String path)
currentFile
public static java.io.File currentFile()
currentStream
public static java.io.InputStream currentStream()
read
public static int read()
throws java.io.IOException
- Throws:
java.io.IOException