org.jacorb.idl

Class 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.22 2004/05/06 12:39:58 nicolas Exp $

Author:
Gerald Brose

Method Summary

static File
currentFile()
static InputStream
currentStream()
static void
include(String fname, int lookahead, boolean useIncludePath)
static boolean
includeState()
static void
init()
static void
insert(String str)
static boolean
isMoreRecentThan(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(String path)
static void
setInput(String fname)

Method Details

currentFile

public static File currentFile()


currentStream

public static InputStream currentStream()


include

public static void include(String fname,
                           int lookahead,
                           boolean useIncludePath)
            throws FileNotFoundException


includeState

public static boolean includeState()


init

public static void init()


insert

public static void insert(String str)


isMoreRecentThan

public static boolean isMoreRecentThan(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 .


read

public static int read()
            throws IOException


setIncludePath

public static void setIncludePath(String path)


setInput

public static void setInput(String fname)
            throws java.io.IOException