org.freehep.postscript.types
Class PSInputFile
java.lang.Object
  
org.freehep.postscript.types.PSObject
      
org.freehep.postscript.types.PSComposite
          
org.freehep.postscript.types.PSFile
              
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
 
 
 
 
| Fields inherited from class org.freehep.postscript.types.PSObject | 
log, name | 
 
 
 
 
 
 
 
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
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.