org.apache.axis2.corba.idl
Class PreProcessorInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.apache.axis2.corba.idl.PreProcessorInputStream
All Implemented Interfaces:
Closeable

public class PreProcessorInputStream
extends InputStream


Field Summary
protected  int contentLength
           
protected  String currentFile
           
protected  StringBuffer idlContent
           
protected  int lastRead
           
static int MAX_DEPTH
           
protected  String parentPath
           
protected  String[] systemIncludePaths
           
protected  String[] userIncludePaths
           
 
Constructor Summary
PreProcessorInputStream(String parentPath, String idlFilename)
           
PreProcessorInputStream(String parentPath, String idlFilename, String[] userIncludePaths, String[] systemIncludePaths)
           
 
Method Summary
protected  InputStream getInputStream(String parent, String filename)
           
 int read()
           
protected  StringBuffer readIdl(InputStream idlStream, int depth)
           
protected  InputStream resolveInclude(String include, String lineNoString)
           
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_DEPTH

public static int MAX_DEPTH

userIncludePaths

protected String[] userIncludePaths

systemIncludePaths

protected String[] systemIncludePaths

currentFile

protected String currentFile

parentPath

protected String parentPath

idlContent

protected StringBuffer idlContent

contentLength

protected int contentLength

lastRead

protected int lastRead
Constructor Detail

PreProcessorInputStream

public PreProcessorInputStream(String parentPath,
                               String idlFilename)
                        throws PreProcessorException
Throws:
PreProcessorException

PreProcessorInputStream

public PreProcessorInputStream(String parentPath,
                               String idlFilename,
                               String[] userIncludePaths,
                               String[] systemIncludePaths)
                        throws PreProcessorException
Throws:
PreProcessorException
Method Detail

readIdl

protected StringBuffer readIdl(InputStream idlStream,
                               int depth)
                        throws PreProcessorException
Throws:
PreProcessorException

resolveInclude

protected InputStream resolveInclude(String include,
                                     String lineNoString)
                              throws PreProcessorException
Throws:
PreProcessorException

getInputStream

protected InputStream getInputStream(String parent,
                                     String filename)
                              throws PreProcessorException
Throws:
PreProcessorException

read

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


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.