org.foray.ps
Class PsFileFilter

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

public class PsFileFilter
extends PsFile

Class representing a PostScript "file" object. An instance of this class is really a wrapper around one of several things: 1) a real file, 2) an input source, like standard input, or 3) a filter that sits on top of another PsFile instance.


Constructor Summary
PsFileFilter(EexecDecodeFilter filter, PsFile underlyingFile)
          Constructor for an instance that is a filter for a PsFile instance.
PsFileFilter(EexecDecodeFilter filter, PsString underlyingString)
          Constructor for an instance that is a filter for a PsString instance.
 
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

PsFileFilter

public PsFileFilter(EexecDecodeFilter filter,
                    PsFile underlyingFile)
Constructor for an instance that is a filter for a PsFile instance.

Parameters:
filter - The filter instance.
underlyingFile - The PsFile which backs this filter.

PsFileFilter

public PsFileFilter(EexecDecodeFilter filter,
                    PsString underlyingString)
Constructor for an instance that is a filter for a PsString instance.

Parameters:
filter - The filter instance.
underlyingString - The String which backs this filter.
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.