18 lines
308 B
Java
18 lines
308 B
Java
|
|
public class PrintSpooler
|
|
{
|
|
private static PrintSpooler spooler;
|
|
|
|
public static PrintSpooler getSpooler()
|
|
{
|
|
if (spooler == null)
|
|
spooler = new PrintSpooler();
|
|
return spooler;
|
|
}
|
|
|
|
public void printDocument(String s)
|
|
{
|
|
System.out.println(s);
|
|
}
|
|
}
|