org.freehep.postscript.types
Class PSInputFile

java.lang.Object
  extended by org.freehep.postscript.types.PSObject
      extended by org.freehep.postscript.types.PSComposite
          extended by org.freehep.postscript.types.PSFile
              extended by org.freehep.postscript.types.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

Author:
Mark Donszelmann

Field Summary
 
Fields inherited from class org.freehep.postscript.types.PSFile
filename, filter
 
Fields inherited from class org.freehep.postscript.types.PSComposite
EXECUTE_ONLY, NONE, READ_ONLY, UNLIMITED
 
Fields inherited from class org.freehep.postscript.types.PSObject
log, name
 
Constructor Summary
  PSInputFile(InputStream input, DSC dsc)
           
  PSInputFile(String filename)
           
protected PSInputFile(String n, boolean f, InputStream i, Scanner s, DSC d)
           
  PSInputFile(String filename, DSC dsc)
           
  PSInputFile(String filename, int buffer)
           
  PSInputFile(String filename, int buffer, DSC dsc)
           
 
Method Summary
 int available()
           
 Object clone()
           
 void close()
           
 PSObject copy()
           
 boolean equals(Object o)
           
 boolean execute(OperandStack os)
           
 void flush()
           
 DSC getDSC()
           
 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.types.PSFile
cvs, getFilePointer, getType, seek, toString, write
 
Methods inherited from class org.freehep.postscript.types.PSComposite
accessExecute, accessRead, accessWrite, changeAccess
 
Methods inherited from class org.freehep.postscript.types.PSObject
checkAndExecute, error, isExecutable, isLiteral, setExecutable, setLiteral, setName, toPrint
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PSInputFile

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

PSInputFile

public PSInputFile(InputStream input,
                   DSC dsc)
            throws IOException
Throws:
IOException

PSInputFile

public PSInputFile(String filename)
            throws IOException
Throws:
IOException

PSInputFile

public PSInputFile(String filename,
                   int buffer)
            throws IOException
Throws:
IOException

PSInputFile

public PSInputFile(String filename,
                   DSC dsc)
            throws IOException
Throws:
IOException

PSInputFile

public PSInputFile(String filename,
                   int buffer,
                   DSC dsc)
            throws IOException
Throws:
IOException
Method Detail

getInputStream

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

getDSC

public final DSC getDSC()
Specified by:
getDSC in interface PSDataSource

token

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

execute

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

close

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

read

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

readLine

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

available

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

flush

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

reset

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

isValid

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

hashCode

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

equals

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

clone

public final Object clone()
                   throws CloneNotSupportedException
Specified by:
clone in class PSObject
Throws:
CloneNotSupportedException

copy

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


Copyright © 2001-2009 FreeHEP. All Rights Reserved.