All Packages  This Package  Class Hierarchy  Class Search  Index

Interface bmsi.sna.SNADevice

  Summary

public interface  SNADevice
{
          // Methods 3
     public abstract void finishJob(Writer) throws IOException;
     public abstract int getMedium();
     public abstract Writer startJob(String) throws IOException;
}

An SNA3770 text output device.

Author:
Stuart D. Gathman Copyright (C) 1999 Business Management Systems, Inc.


  Cross Reference

Implemented By:
Spooler





  Methods

· startJob

Summary  |  Top
   public abstract Writer startJob(String dsname)  throws IOException

This method is called for each output job. It must be callable from multiple Threads - synchronizing the implementation is an easy way to do this.

Returns:
an open Writer for the output, or null if this SNADevice is busy and another should be selected to handle the input,


· finishJob

Summary  |  Top
   public abstract void finishJob(Writer wtr)  throws IOException

This method is called when a job is completed normally. If the Writer is closed without finishing, it is effectively aborted.



· getMedium

Summary  |  Top
   public abstract int getMedium() 

Return the medium and subaddress handled by this SNADevice. If the subaddress if FMH_1.FM_ANY, this device will be used for any subaddress.

See Also: FMH_1@getMedium



All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7