org.freehep.postscript
Class PSOutputFile

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.PSOutputFile
All Implemented Interfaces:
Cloneable, PSDataTarget

public class PSOutputFile
extends PSFile
implements PSDataTarget

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

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

Field Summary
protected  boolean append
           
protected  OutputStream out
           
 
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
  PSOutputFile(OutputStream output)
           
  PSOutputFile(String filename, boolean append, boolean secure)
           
protected PSOutputFile(String n, boolean f, OutputStream o)
           
 
Method Summary
 Object clone()
           
 void close()
           
 PSObject copy()
           
 boolean equals(Object o)
           
 void flush()
           
 OutputStream getOutputStream()
           
 int hashCode()
           
 boolean isValid()
           
 void write(int b, boolean secure)
           
 
Methods inherited from class org.freehep.postscript.PSFile
available, cvs, execute, getFilePointer, getType, mark, markSupported, read, readLine, reset, seek, 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

out

protected OutputStream out

append

protected boolean append
Constructor Detail

PSOutputFile

protected PSOutputFile(String n,
                       boolean f,
                       OutputStream o)

PSOutputFile

public PSOutputFile(OutputStream output)
             throws IOException
Throws:
IOException

PSOutputFile

public PSOutputFile(String filename,
                    boolean append,
                    boolean secure)
             throws IOException
Throws:
IOException
Method Detail

getOutputStream

public OutputStream getOutputStream()
Specified by:
getOutputStream in interface PSDataTarget

close

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

write

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

flush

public void flush()
           throws IOException
Overrides:
flush 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.