I have a favour to ask:
can someone with a windows machine and someone with a Mac run the
attached class file (java PrintQuery) and tell me the output?
It is to determine the available streamed print services on those
platforms.
(for interested readers:
import java.awt.print.PrinterJob;
import javax.print.StreamPrintServiceFactory;
public class PrintQuery {
public static void main( String[] args ) {
StreamPrintServiceFactory[] services =
PrinterJob.lookupStreamPrintServices( null );
System.out.println( "Services:" );
for ( int i = 0; i < services.length; i++ ) {
System.out.println( " " + services[ i ].getOutputFormat() );
}
}
}
)
Thanks.
Mark
--
Mark Taylor Starlink Programmer Physics, Bristol University, UK
[log in to unmask] +44-117-928-8776 http://www.star.bris.ac.uk/~mbt/
|