FreeHEP API
Version current

org.freehep.postscript
Class PSFile

java.lang.Object
  extended byorg.freehep.postscript.PSObject
      extended byorg.freehep.postscript.PSComposite
          extended byorg.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.11 2004/01/12 20:19:15 duns Exp $
Author:
Mark Donszelmann
Source Code:
PSFile.java

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()
           
 void mark(int readLimit)
           
 boolean markSupported()
           
 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
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

markSupported

public boolean markSupported()

mark

public void mark(int readLimit)

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 current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.