org.foray.ps
Class PsInputFile

java.lang.Object
  extended by org.foray.ps.PsInputFile
All Implemented Interfaces:
org.axsl.ps.PsInput

public class PsInputFile
extends Object
implements org.axsl.ps.PsInput

An implementation of PsInput that wraps a java.io.File instance.

Author:
Jeremias Maerki
See Also:
PsInput

Constructor Summary
PsInputFile(File psFile)
          Basic constructor.
 
Method Summary
 byte[] providePostScriptInput()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PsInputFile

public PsInputFile(File psFile)
            throws IOException
Basic constructor.

Parameters:
psFile - The File instance that should be used as standard input to the PsInterpreter.
Throws:
IOException - If the file cannot be opened for use.
Method Detail

providePostScriptInput

public byte[] providePostScriptInput()
                              throws IOException
Specified by:
providePostScriptInput in interface org.axsl.ps.PsInput
Throws:
IOException


Copyright © 2017. All rights reserved.