1 7 8 package javax.print; 9 10 import java.io.OutputStream ; 11 12 37 38 public abstract class StreamPrintService implements PrintService { 39 40 private OutputStream outStream; 41 private boolean disposed = false; 42 43 private StreamPrintService() { 44 }; 45 46 51 protected StreamPrintService(OutputStream out) { 52 this.outStream = out; 53 } 54 55 60 public OutputStream getOutputStream() { 61 return outStream; 62 } 63 64 70 public abstract String getOutputFormat(); 71 72 80 public void dispose() { 81 disposed = true; 82 } 83 84 92 public boolean isDisposed() { 93 return disposed; 94 } 95 96 } 97 | Popular Tags |