added PrintSpooler.java
git-svn-id: svn://anubis/gvsu@70 45c1a28c-8058-47b2-ae61-ca45b979098e
This commit is contained in:
parent
2d591362ab
commit
33466b5ca6
17
cs621/proj3/PrintSpooler.java
Normal file
17
cs621/proj3/PrintSpooler.java
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user