org.freehep.postscript.types
Class PSFile
java.lang.Object
  
org.freehep.postscript.types.PSObject
      
org.freehep.postscript.types.PSComposite
          
org.freehep.postscript.types.PSFile
- All Implemented Interfaces: 
 - Cloneable
 
- Direct Known Subclasses: 
 - PSInputFile, PSOutputFile, PSRandomAccessFile
 
public abstract class PSFile
- extends PSComposite
 
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 | 
 
| 
Constructor Summary | 
protected  | 
PSFile(String name,
       boolean isFilter,
       int access)
 
            | 
 
 
 
| Methods inherited from class org.freehep.postscript.types.PSObject | 
checkAndExecute, clone, copy, equals, error, hashCode, isExecutable, isLiteral, setExecutable, setLiteral, setName, toPrint | 
 
 
filename
protected String filename
filter
protected boolean filter
PSFile
protected PSFile(String name,
                 boolean isFilter,
                 int access)
execute
public boolean execute(OperandStack os)
- Specified by:
 execute in class PSObject
 
 
getType
public String getType()
- Specified by:
 getType in class PSObject
 
 
close
public abstract void close()
                    throws IOException
- Throws:
 IOException
 
read
public int read()
         throws IOException
- Throws:
 IOException
 
readLine
public String readLine()
                throws IOException
- Throws:
 IOException
 
write
public void write(int b,
                  boolean secure)
           throws IOException
- Throws:
 IOException
 
seek
public void seek(long pos)
          throws IOException
- Throws:
 IOException
 
getFilePointer
public long getFilePointer()
                    throws IOException
- Throws:
 IOException
 
available
public int available()
              throws IOException
- Throws:
 IOException
 
flush
public void flush()
           throws IOException
- Throws:
 IOException
 
reset
public void reset()
           throws IOException
- Throws:
 IOException
 
isValid
public abstract boolean isValid()
 
cvs
public String cvs()
- Specified by:
 cvs in class PSObject
 
 
toString
public String toString()
- Overrides:
 toString in class PSObject
 
 
Copyright © 2001-2009 FreeHEP. All Rights Reserved.