FreeHEP API
Version v1.2

org.freehep.postscript
Class PSInputFile

java.lang.Object
  |
  +--org.freehep.postscript.PSObject
        |
        +--org.freehep.postscript.PSComposite
              |
              +--org.freehep.postscript.PSFile
                    |
                    +--org.freehep.postscript.PSInputFile
All Implemented Interfaces:
Cloneable, PSDataSource, PSTokenizable

public class PSInputFile
extends PSFile
implements PSTokenizable, PSDataSource

Objects for PostScript Processor, as defined in 3.3 Data Types and Objects

Version:
$Id: PSInputFile.java,v 1.8 2001/09/13 15:45:09 duns Exp $
Author:
Mark Donszelmann

Field Summary
protected  InputStream in
           
protected  Scanner scanner
           
 
Fields inherited from class org.freehep.postscript.PSFile
filename, filter
 
Fields inherited from class org.freehep.postscript.PSComposite
access, EXECUTE_ONLY, NONE, READ_ONLY, UNLIMITED
 
Fields inherited from class org.freehep.postscript.PSObject
name
 
Constructor Summary
  PSInputFile(InputStream input)
           
  PSInputFile(String filename)
           
protected PSInputFile(String n, boolean f, InputStream i, Scanner s)
           
 
Method Summary
 int available()
           
 Object clone()
           
 void close()
           
 PSObject copy()
           
 boolean equals(Object o)
           
 boolean execute(OperandStack os)
           
 void flush()
           
 InputStream getInputStream()
           
 int hashCode()
           
 boolean isValid()
           
 int read()
           
 String readLine()
           
 void reset()
           
 PSObject token(boolean packingMode, NameLookup lookup)
           
 
Methods inherited from class org.freehep.postscript.PSFile
cvs, getFilePointer, getType, seek, toString, write
 
Methods inherited from class org.freehep.postscript.PSComposite
accessExecute, accessRead, accessWrite, changeAccess
 
Methods inherited from class org.freehep.postscript.PSObject
checkAndExecute, error, isExecutable, isLiteral, setExecutable, setLiteral, setName, toPrint
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

in

protected InputStream in

scanner

protected Scanner scanner
Constructor Detail

PSInputFile

protected PSInputFile(String n,
                      boolean f,
                      InputStream i,
                      Scanner s)

PSInputFile

public PSInputFile(InputStream input)
            throws IOException

PSInputFile

public PSInputFile(String filename)
            throws FileNotFoundException,
                   IOException
Method Detail

getInputStream

public InputStream getInputStream()
Specified by:
getInputStream in interface PSDataSource

token

public PSObject token(boolean packingMode,
                      NameLookup lookup)
               throws IOException,
                      SyntaxException,
                      NameNotFoundException
Specified by:
token in interface PSTokenizable
IOException
SyntaxException
NameNotFoundException

execute

public boolean execute(OperandStack os)
Overrides:
execute in class PSFile

close

public void close()
           throws IOException
Specified by:
close in class PSFile
IOException

read

public int read()
         throws IOException
Specified by:
read in interface PSDataSource
Overrides:
read in class PSFile
IOException

readLine

public String readLine()
                throws IOException
Overrides:
readLine in class PSFile
IOException

available

public int available()
              throws IOException
Overrides:
available in class PSFile
IOException

flush

public void flush()
           throws IOException
Overrides:
flush in class PSFile
IOException

reset

public void reset()
           throws IOException
Specified by:
reset in interface PSDataSource
Overrides:
reset in class PSFile
IOException

isValid

public boolean isValid()
Specified by:
isValid in class PSFile

hashCode

public int hashCode()
Specified by:
hashCode in class PSObject

equals

public boolean equals(Object o)
Specified by:
equals in class PSObject

clone

public Object clone()
Specified by:
clone in class PSObject

copy

public PSObject copy()
Specified by:
copy in class PSObject

FreeHEP API
Version v1.2

Copyright © 2000-2003 FreeHEP, All Rights Reserved.