KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ofbiz > pos > jpos > service > NullPosPrinter


1 /*
2  * $Id: NullPosPrinter.java 5462 2005-08-05 18:35:48Z jonesde $
3  *
4  * Copyright (c) 2004 The Open For Business Project - www.ofbiz.org
5  *
6  * Permission is hereby granted, free of charge, to any person obtaining a
7  * copy of this software and associated documentation files (the "Software"),
8  * to deal in the Software without restriction, including without limitation
9  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10  * and/or sell copies of the Software, and to permit persons to whom the
11  * Software is furnished to do so, subject to the following conditions:
12  *
13  * The above copyright notice and this permission notice shall be included
14  * in all copies or substantial portions of the Software.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19  * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20  * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
21  * OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
22  * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23  *
24  */

25 package org.ofbiz.pos.jpos.service;
26
27 import jpos.JposException;
28
29 import org.ofbiz.base.util.Debug;
30
31 /**
32  *
33  * @author <a HREF="mailto:jaz@ofbiz.org">Andy Zeneski</a>
34  * @version $Rev: 5462 $
35  * @since 3.2
36  */

37 public class NullPosPrinter extends BaseService implements jpos.services.POSPrinterService12 {
38
39     public int getDeviceServiceVersion() throws JposException {
40         return 1002000;
41     }
42     
43     public int getCapCharacterSet() throws JposException {
44         return 0;
45     }
46
47     public boolean getCapConcurrentJrnRec() throws JposException {
48         return false;
49     }
50
51     public boolean getCapConcurrentJrnSlp() throws JposException {
52         return false;
53     }
54
55     public boolean getCapConcurrentRecSlp() throws JposException {
56         return false;
57     }
58
59     public boolean getCapCoverSensor() throws JposException {
60         return false;
61     }
62
63     public boolean getCapJrn2Color() throws JposException {
64         return false;
65     }
66
67     public boolean getCapJrnBold() throws JposException {
68         return false;
69     }
70
71     public boolean getCapJrnDhigh() throws JposException {
72         return false;
73     }
74
75     public boolean getCapJrnDwide() throws JposException {
76         return false;
77     }
78
79     public boolean getCapJrnDwideDhigh() throws JposException {
80         return false;
81     }
82
83     public boolean getCapJrnEmptySensor() throws JposException {
84         return false;
85     }
86
87     public boolean getCapJrnItalic() throws JposException {
88         return false;
89     }
90
91     public boolean getCapJrnNearEndSensor() throws JposException {
92         return false;
93     }
94
95     public boolean getCapJrnPresent() throws JposException {
96         return false;
97     }
98
99     public boolean getCapJrnUnderline() throws JposException {
100         return false;
101     }
102
103     public boolean getCapRec2Color() throws JposException {
104         return false;
105     }
106
107     public boolean getCapRecBarCode() throws JposException {
108         return false;
109     }
110
111     public boolean getCapRecBitmap() throws JposException {
112         return false;
113     }
114
115     public boolean getCapRecBold() throws JposException {
116         return false;
117     }
118
119     public boolean getCapRecDhigh() throws JposException {
120         return false;
121     }
122
123     public boolean getCapRecDwide() throws JposException {
124         return false;
125     }
126
127     public boolean getCapRecDwideDhigh() throws JposException {
128         return false;
129     }
130
131     public boolean getCapRecEmptySensor() throws JposException {
132         return false;
133     }
134
135     public boolean getCapRecItalic() throws JposException {
136         return false;
137     }
138
139     public boolean getCapRecLeft90() throws JposException {
140         return false;
141     }
142
143     public boolean getCapRecNearEndSensor() throws JposException {
144         return false;
145     }
146
147     public boolean getCapRecPapercut() throws JposException {
148         return false;
149     }
150
151     public boolean getCapRecPresent() throws JposException {
152         return false;
153     }
154
155     public boolean getCapRecRight90() throws JposException {
156         return false;
157     }
158
159     public boolean getCapRecRotate180() throws JposException {
160         return false;
161     }
162
163     public boolean getCapRecStamp() throws JposException {
164         return false;
165     }
166
167     public boolean getCapRecUnderline() throws JposException {
168         return false;
169     }
170
171     public boolean getCapSlp2Color() throws JposException {
172         return false;
173     }
174
175     public boolean getCapSlpBarCode() throws JposException {
176         return false;
177     }
178
179     public boolean getCapSlpBitmap() throws JposException {
180         return false;
181     }
182
183     public boolean getCapSlpBold() throws JposException {
184         return false;
185     }
186
187     public boolean getCapSlpDhigh() throws JposException {
188         return false;
189     }
190
191     public boolean getCapSlpDwide() throws JposException {
192         return false;
193     }
194
195     public boolean getCapSlpDwideDhigh() throws JposException {
196         return false;
197     }
198
199     public boolean getCapSlpEmptySensor() throws JposException {
200         return false;
201     }
202
203     public boolean getCapSlpFullslip() throws JposException {
204         return false;
205     }
206
207     public boolean getCapSlpItalic() throws JposException {
208         return false;
209     }
210
211     public boolean getCapSlpLeft90() throws JposException {
212         return false;
213     }
214
215     public boolean getCapSlpNearEndSensor() throws JposException {
216         return false;
217     }
218
219     public boolean getCapSlpPresent() throws JposException {
220         return false;
221     }
222
223     public boolean getCapSlpRight90() throws JposException {
224         return false;
225     }
226
227     public boolean getCapSlpRotate180() throws JposException {
228         return false;
229     }
230
231     public boolean getCapSlpUnderline() throws JposException {
232         return false;
233     }
234
235     public boolean getCapTransaction() throws JposException {
236         return false;
237     }
238
239     public boolean getAsyncMode() throws JposException {
240         return false;
241     }
242
243     public void setAsyncMode(boolean b) throws JposException {
244     }
245
246     public int getCharacterSet() throws JposException {
247         return 0;
248     }
249
250     public void setCharacterSet(int i) throws JposException {
251     }
252
253     public String JavaDoc getCharacterSetList() throws JposException {
254         return null;
255     }
256
257     public boolean getCoverOpen() throws JposException {
258         return false;
259     }
260
261     public int getErrorLevel() throws JposException {
262         return 0;
263     }
264
265     public int getErrorStation() throws JposException {
266         return 0;
267     }
268
269     public String JavaDoc getErrorString() throws JposException {
270         return null;
271     }
272
273     public boolean getFlagWhenIdle() throws JposException {
274         return false;
275     }
276
277     public void setFlagWhenIdle(boolean b) throws JposException {
278     }
279
280     public String JavaDoc getFontTypefaceList() throws JposException {
281         return null;
282     }
283
284     public boolean getJrnEmpty() throws JposException {
285         return false;
286     }
287
288     public boolean getJrnLetterQuality() throws JposException {
289         return false;
290     }
291
292     public void setJrnLetterQuality(boolean b) throws JposException {
293     }
294
295     public int getJrnLineChars() throws JposException {
296         return 0;
297     }
298
299     public void setJrnLineChars(int i) throws JposException {
300     }
301
302     public String JavaDoc getJrnLineCharsList() throws JposException {
303         return null;
304     }
305
306     public int getJrnLineHeight() throws JposException {
307         return 0;
308     }
309
310     public void setJrnLineHeight(int i) throws JposException {
311     }
312
313     public int getJrnLineSpacing() throws JposException {
314         return 0;
315     }
316
317     public void setJrnLineSpacing(int i) throws JposException {
318     }
319
320     public int getJrnLineWidth() throws JposException {
321         return 0;
322     }
323
324     public boolean getJrnNearEnd() throws JposException {
325         return false;
326     }
327
328     public int getMapMode() throws JposException {
329         return 0;
330     }
331
332     public void setMapMode(int i) throws JposException {
333     }
334
335     public int getOutputID() throws JposException {
336         return 0;
337     }
338
339     public String JavaDoc getRecBarCodeRotationList() throws JposException {
340         return null;
341     }
342
343     public boolean getRecEmpty() throws JposException {
344         return false;
345     }
346
347     public boolean getRecLetterQuality() throws JposException {
348         return false;
349     }
350
351     public void setRecLetterQuality(boolean b) throws JposException {
352     }
353
354     public int getRecLineChars() throws JposException {
355         return 0;
356     }
357
358     public void setRecLineChars(int i) throws JposException {
359     }
360
361     public String JavaDoc getRecLineCharsList() throws JposException {
362         return null;
363     }
364
365     public int getRecLineHeight() throws JposException {
366         return 0;
367     }
368
369     public void setRecLineHeight(int i) throws JposException {
370     }
371
372     public int getRecLineSpacing() throws JposException {
373         return 0;
374     }
375
376     public void setRecLineSpacing(int i) throws JposException {
377     }
378
379     public int getRecLinesToPaperCut() throws JposException {
380         return 0;
381     }
382
383     public int getRecLineWidth() throws JposException {
384         return 0;
385     }
386
387     public boolean getRecNearEnd() throws JposException {
388         return false;
389     }
390
391     public int getRecSidewaysMaxChars() throws JposException {
392         return 0;
393     }
394
395     public int getRecSidewaysMaxLines() throws JposException {
396         return 0;
397     }
398
399     public int getRotateSpecial() throws JposException {
400         return 0;
401     }
402
403     public void setRotateSpecial(int i) throws JposException {
404     }
405
406     public String JavaDoc getSlpBarCodeRotationList() throws JposException {
407         return null;
408     }
409
410     public boolean getSlpEmpty() throws JposException {
411         return false;
412     }
413
414     public boolean getSlpLetterQuality() throws JposException {
415         return false;
416     }
417
418     public void setSlpLetterQuality(boolean b) throws JposException {
419     }
420
421     public int getSlpLineChars() throws JposException {
422         return 0;
423     }
424
425     public void setSlpLineChars(int i) throws JposException {
426     }
427
428     public String JavaDoc getSlpLineCharsList() throws JposException {
429         return null;
430     }
431
432     public int getSlpLineHeight() throws JposException {
433         return 0;
434     }
435
436     public void setSlpLineHeight(int i) throws JposException {
437     }
438
439     public int getSlpLinesNearEndToEnd() throws JposException {
440         return 0;
441     }
442
443     public int getSlpLineSpacing() throws JposException {
444         return 0;
445     }
446
447     public void setSlpLineSpacing(int i) throws JposException {
448     }
449
450     public int getSlpLineWidth() throws JposException {
451         return 0;
452     }
453
454     public int getSlpMaxLines() throws JposException {
455         return 0;
456     }
457
458     public boolean getSlpNearEnd() throws JposException {
459         return false;
460     }
461
462     public int getSlpSidewaysMaxChars() throws JposException {
463         return 0;
464     }
465
466     public int getSlpSidewaysMaxLines() throws JposException {
467         return 0;
468     }
469
470     public void beginInsertion(int i) throws JposException {
471     }
472
473     public void beginRemoval(int i) throws JposException {
474     }
475
476     public void clearOutput() throws JposException {
477     }
478
479     public void cutPaper(int i) throws JposException {
480     }
481
482     public void endInsertion() throws JposException {
483     }
484
485     public void endRemoval() throws JposException {
486     }
487
488     public void printBarCode(int i, String JavaDoc s, int i1, int i2, int i3, int i4, int i5) throws JposException {
489         Debug.log("Barcode:\n" + s + "\n", module);
490     }
491
492     public void printBitmap(int i, String JavaDoc s, int i1, int i2) throws JposException {
493         Debug.log("Bitmap:\n" + s + "\n", module);
494     }
495
496     public void printImmediate(int i, String JavaDoc s) throws JposException {
497         Debug.log("Immediate:\n" + s + "\n", module);
498     }
499
500     public void printNormal(int i, String JavaDoc s) throws JposException {
501         Debug.log("Normal:\n" + s + "\n", module);
502     }
503
504     public void printTwoNormal(int i, String JavaDoc s, String JavaDoc s1) throws JposException {
505         Debug.log("2Normal:\n" + s + "\n", module);
506     }
507
508     public void rotatePrint(int i, int i1) throws JposException {
509     }
510
511     public void setBitmap(int i, int i1, String JavaDoc s, int i2, int i3) throws JposException {
512     }
513
514     public void setLogo(int i, String JavaDoc s) throws JposException {
515     }
516
517     public void transactionPrint(int i, int i1) throws JposException {
518     }
519
520     public void validateData(int i, String JavaDoc s) throws JposException {
521     }
522 }
Popular Tags