org.freehep.postscript
Class PSRandomAccessFile

java.lang.Object
  extended by org.freehep.postscript.PSObject
      extended by org.freehep.postscript.PSComposite
          extended by org.freehep.postscript.PSFile
              extended by org.freehep.postscript.PSRandomAccessFile
All Implemented Interfaces:
Cloneable

public class PSRandomAccessFile
extends PSFile

Objects for PostScript Processor, as defined in 3.3 Data Types and Objects

Version:
$Id: PSRandomAccessFile.java 8951 2006-09-12 21:44:14Z duns $
Author:
Mark Donszelmann

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

Field Detail

raf

protected RandomAccessFile raf

write

protected boolean write

append

protected boolean append
Constructor Detail

PSRandomAccessFile

protected PSRandomAccessFile(String n,
                             boolean f,
                             RandomAccessFile r)

PSRandomAccessFile

public PSRandomAccessFile(String filename,
                          boolean write,
                          boolean append,
                          boolean secure)
                   throws FileNotFoundException,
                          IOException
Throws:
FileNotFoundException
IOException
Method Detail

close

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

read

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

readLine

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

write

public void write(int b,
                  boolean secure)
           throws IOException
Overrides:
write in class PSFile
Throws:
IOException

seek

public void seek(long pos)
          throws IOException
Overrides:
seek in class PSFile
Throws:
IOException

getFilePointer

public long getFilePointer()
                    throws IOException
Overrides:
getFilePointer in class PSFile
Throws:
IOException

available

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

flush

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

reset

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

isValid

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

hashCode

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

equals

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

clone

public Object clone()
Specified by:
clone in class PSObject

copy

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


Copyright © 2000-2006 FreeHEP. All Rights Reserved.