Class StreamedResourceGroup

All Implemented Interfaces:
Completable, Streamable

public class StreamedResourceGroup extends ResourceGroup implements Completable
A print-file resource group
  • Constructor Details

    • StreamedResourceGroup

      public StreamedResourceGroup(String name, OutputStream os)
      Main constructor
      Parameters:
      name - the resource group name
      os - the outputstream
  • Method Details

    • addObject

      public void addObject(AbstractNamedAFPObject namedObject) throws IOException
      Adds a resource to the external resource group
      Overrides:
      addObject in class ResourceGroup
      Parameters:
      namedObject - a named object
      Throws:
      IOException - thrown if an I/O exception of some sort has occurred.
    • close

      public void close() throws IOException
      Closes this external resource group file
      Throws:
      IOException - thrown if an I/O exception of some sort has occurred.
    • getOutputStream

      public OutputStream getOutputStream()
      Returns the outputstream
      Returns:
      the outputstream
    • setComplete

      public void setComplete(boolean complete)
      Sets whether or not this object is complete or not
      Specified by:
      setComplete in interface Completable
      Parameters:
      complete - true if this object is complete
    • isComplete

      public boolean isComplete()
      Returns true if this object is complete
      Specified by:
      isComplete in interface Completable
      Returns:
      true if this object is complete