FreeHEP API
Version v1.2

org.freehep.postscript
Class PSFile

java.lang.Object
  |
  +--org.freehep.postscript.PSObject
        |
        +--org.freehep.postscript.PSComposite
              |
              +--org.freehep.postscript.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

Version:
$Id: PSFile.java,v 1.9 2001/06/15 14:11:17 duns Exp $
Author:
Mark Donszelmann

Field Summary
protected  String filename
           
protected  boolean 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
protected PSFile(String name, boolean isFilter)
           
 
Method Summary
 int available()
           
abstract  void close()
           
 String cvs()
           
 boolean execute(OperandStack os)
           
 void flush()
           
 long getFilePointer()
           
 String getType()
           
abstract  boolean isValid()
           
 int read()
           
 String readLine()
           
 void reset()
           
 void seek(long pos)
           
 String toString()
           
 void write(int b, boolean secure)
           
 
Methods inherited from class org.freehep.postscript.PSComposite
accessExecute, accessRead, accessWrite, changeAccess
 
Methods inherited from class org.freehep.postscript.PSObject
checkAndExecute, clone, copy, equals, error, hashCode, isExecutable, isLiteral, setExecutable, setLiteral, setName, toPrint
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

filename

protected String filename

filter

protected boolean filter
Constructor Detail

PSFile

protected PSFile(String name,
                 boolean isFilter)
Method Detail

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
IOException

read

public int read()
         throws IOException
IOException

readLine

public String readLine()
                throws IOException
IOException

write

public void write(int b,
                  boolean secure)
           throws IOException
IOException

seek

public void seek(long pos)
          throws IOException
IOException

getFilePointer

public long getFilePointer()
                    throws IOException
IOException

available

public int available()
              throws IOException
IOException

flush

public void flush()
           throws IOException
IOException

reset

public void reset()
           throws IOException
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

FreeHEP API
Version v1.2

Copyright © 2000-2003 FreeHEP, All Rights Reserved.