org.foray.ps
Class PsFileReal

java.lang.Object
  extended by org.foray.ps.PsObjectComposite
      extended by org.foray.ps.PsFile
          extended by org.foray.ps.PsFileReal
All Implemented Interfaces:
PsObject

public class PsFileReal
extends PsFile

An instance of this class is really a wrapper around either a real file or an input source, like standard input.


Constructor Summary
PsFileReal(File file)
          Constructor for an instance that wraps a real file.
PsFileReal(org.axsl.ps.PsInput input)
          Constructor for an instance that wraps an input source (like standard input).
 
Method Summary
protected  byte[] getNextChunk()
          Returns the next chunk of content for this file.
 
Methods inherited from class org.foray.ps.PsFile
close, closeFile, duplicate, getRemainingChunk, getTypeName, isComparable, isComposite, isExecutable, isOpen, provideInput, setPopDictionaryStack
 
Methods inherited from class org.foray.ps.PsObjectComposite
getAccess, setAccess
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PsFileReal

public PsFileReal(File file)
Constructor for an instance that wraps a real file.

Parameters:
file - The File to be encapsulated.

PsFileReal

public PsFileReal(org.axsl.ps.PsInput input)
Constructor for an instance that wraps an input source (like standard input).

Parameters:
input - The input to be encapsulated.
Method Detail

getNextChunk

protected byte[] getNextChunk()
                       throws IOException
Description copied from class: PsFile
Returns the next chunk of content for this file.

Specified by:
getNextChunk in class PsFile
Returns:
The next byte array for this file.
Throws:
IOException - For I/O Errors.


Copyright © 2017. All rights reserved.