KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > it > stefanochizzolini > clown > objects > PdfNull


1 /*
2   Copyright 2006 Stefano Chizzolini. http://clown.stefanochizzolini.it
3
4   Contributors:
5     * Stefano Chizzolini (original code developer, info@stefanochizzolini.it):
6       contributed code is Copyright 2006 by Stefano Chizzolini.
7
8   This file should be part of the source code distribution of "PDF Clown library"
9   (the Program): see the accompanying README files for more info.
10
11   This Program is free software; you can redistribute it and/or modify it under
12   the terms of the GNU General Public License as published by the Free Software
13   Foundation; either version 2 of the License, or (at your option) any later version.
14
15   This Program is distributed in the hope that it will be useful, but WITHOUT ANY
16   WARRANTY, either expressed or implied; without even the implied warranty of
17   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License for more details.
18
19   You should have received a copy of the GNU General Public License along with this
20   Program (see README files); if not, go to the GNU website (http://www.gnu.org/).
21
22   Redistribution and use, with or without modification, are permitted provided that such
23   redistributions retain the above copyright notice, license and disclaimer, along with
24   this list of conditions.
25 */

26
27 package it.stefanochizzolini.clown.objects;
28
29 import it.stefanochizzolini.clown.files.File;
30
31 /**
32   PDF null object [PDF:1.6:3.2.8].
33 */

34 public final class PdfNull
35   extends PdfAtomicObject<Object JavaDoc>
36 {
37   // <class>
38
// <static>
39
// <fields>
40
public static final PdfNull Null = new PdfNull();
41   // </fields>
42
// </static>
43

44   // <dynamic>
45
// <constructors>
46
private PdfNull(
47     )
48   {}
49   // </constructors>
50

51   // <interface>
52
// <public>
53
@Override JavaDoc
54   public Object JavaDoc clone(
55     File context
56     )
57   {
58     /*
59       NOTE: There is only one object of type null [PDF:1.6:3.2.8],
60       so cloning is unsuitable.
61     */

62     return Null;
63   }
64
65   @Override JavaDoc
66   public String JavaDoc toPdf(
67     )
68   {return "null";}
69   // </public>
70
// </interface>
71
// </dynamic>
72
// </class>
73
}
Popular Tags