1 7 package javax.print.attribute.standard; 8 9 import javax.print.attribute.Attribute ; 10 import javax.print.attribute.EnumSyntax ; 11 import javax.print.attribute.DocAttribute ; 12 13 29 public class Compression extends EnumSyntax implements DocAttribute { 30 31 private static final long serialVersionUID = -5716748913324997674L; 32 33 36 public static final Compression NONE = new Compression (0); 37 38 41 public static final Compression DEFLATE = new Compression (1); 42 43 47 public static final Compression GZIP = new Compression (2); 48 49 52 public static final Compression COMPRESS = new Compression (3); 53 54 60 protected Compression(int value) { 61 super(value); 62 } 63 64 65 private static final String [] myStringTable = {"none", 66 "deflate", 67 "gzip", 68 "compress"}; 69 70 private static final Compression [] myEnumValueTable = {NONE, 71 DEFLATE, 72 GZIP, 73 COMPRESS}; 74 75 78 protected String [] getStringTable() { 79 return (String [])myStringTable.clone(); 80 } 81 82 85 protected EnumSyntax [] getEnumValueTable() { 86 return (EnumSyntax [])myEnumValueTable.clone(); 87 } 88 89 99 public final Class <? extends Attribute > getCategory() { 100 return Compression .class; 101 } 102 103 112 public final String getName() { 113 return "compression"; 114 } 115 116 } 117 | Popular Tags |