All Packages  This Package  Class Hierarchy  Class Search  Index

Class bmsi.edx.SelectPrinter
java.lang.Object
   |
   +----bmsi.edx.SelectPrinter

  Summary

public class  SelectPrinter
     extends java.lang.Object
{
          // Constructors 1
     public SelectPrinter();

          // Methods 11
     public static String getDefaultTermxref();
     public static void main(String[]);

     public String getDefaultTerminal();
     public OutputStream getOutputStream(String) throws IOException;
     public PrintStream getPrinter(String) throws IOException;
     public String[] getPrinterList();
     public synchronized String[] getPrinterList(String);
     public String[] getTermEnv();
     public synchronized String[] getTerminalList();
     public void setTermEnv(String, String);
     public void setTermxref(String) throws IOException;
}

A class that maps EDX logical printer names to OutputStreams.

Version:
$Id: SelectPrinter.java,v 1.3 2000/11/28 18:18:08 stuart Exp stuart $
Author:
Stuart D. Gathman




  Constructors

· SelectPrinter

Summary  |  Top

   public SelectPrinter() 


  Methods

· getPrinterList

Summary  |  Top
   public String[] getPrinterList() 

Get the full list of logical printer names defined by the Termxref file.



· getPrinterList

Summary  |  Top
   public synchronized String[] getPrinterList(String termname) 

Get the list of logical printer names for a terminal location. The BTAS/X file /edx/TERMINAL.PRINTER lists the printers displayed for each terminal location. If this file is not found or the location is not found in the file, then all printers in the Termxref file are listed.



· getTerminalList

Summary  |  Top
   public synchronized String[] getTerminalList() 

Get the list of terminal location names defined by TERMINAL.PRINTER.



· getPrinter

Summary  |  Top
   public PrintStream getPrinter(String ptr)  throws IOException
Note: getPrinter() is deprecateduse getOutputStream

Get a PrintStream corresponding to a printer in the Termxref file.

Returns:
null if the printer is not found in the Termxref file.


· setTermEnv

Summary  |  Top
   public void setTermEnv(String key, 
                          String val) 

Set an environment variable for external printer processes.

Parameter Description
key the environment variable name
val the value



· getTermEnv

Summary  |  Top
   public String[] getTermEnv() 

Return the terminal environment as an array of String with the form NAME=VALUE, such as used by Runtime.exec().



· getOutputStream

Summary  |  Top
   public OutputStream getOutputStream(String ptr)  throws IOException

Get an OutputStream corresponding to a printer in the Termxref file.

Returns:
null if the printer is not found in the Termxref file.


· setTermxref

Summary  |  Top
   public void setTermxref(String fname)  throws IOException

Set the name of the file that maps printer names to devices or command pipelines. By default, the bmsi.edxdir property is used as the directory and 'termxref.sys' as the filename. The bmsi.edxdir property defaults to "/edx".



· getDefaultTerminal

Summary  |  Top
   public String getDefaultTerminal() 

Get the default terminal location. This comes from the EDXTERM terminal environment variable, or from the bmsi.term system property if EDXTERM is not set.



· getDefaultTermxref

Summary  |  Top
   public static String getDefaultTermxref() 

Get the default termxref file name.



· main

Summary  |  Top
   public static void main(String[] args) 

list the printers for terminal locations.



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