1 38 39 40 package com.sun.xml.fastinfoset.algorithm; 41 42 import com.sun.xml.fastinfoset.EncodingConstants; 43 import org.jvnet.fastinfoset.EncodingAlgorithmIndexes; 44 45 public final class BuiltInEncodingAlgorithmFactory { 46 47 public final static BuiltInEncodingAlgorithm[] table = 48 new BuiltInEncodingAlgorithm[EncodingConstants.ENCODING_ALGORITHM_BUILTIN_END + 1]; 49 50 public final static HexadecimalEncodingAlgorithm hexadecimalEncodingAlgorithm = new HexadecimalEncodingAlgorithm(); 51 52 public final static BASE64EncodingAlgorithm base64EncodingAlgorithm = new BASE64EncodingAlgorithm(); 53 54 public final static BooleanEncodingAlgorithm booleanEncodingAlgorithm = new BooleanEncodingAlgorithm(); 55 56 public final static ShortEncodingAlgorithm shortEncodingAlgorithm = new ShortEncodingAlgorithm(); 57 58 public final static IntEncodingAlgorithm intEncodingAlgorithm = new IntEncodingAlgorithm(); 59 60 public final static LongEncodingAlgorithm longEncodingAlgorithm = new LongEncodingAlgorithm(); 61 62 public final static FloatEncodingAlgorithm floatEncodingAlgorithm = new FloatEncodingAlgorithm(); 63 64 public final static DoubleEncodingAlgorithm doubleEncodingAlgorithm = new DoubleEncodingAlgorithm(); 65 66 public final static UUIDEncodingAlgorithm uuidEncodingAlgorithm = new UUIDEncodingAlgorithm(); 67 68 static { 69 table[EncodingAlgorithmIndexes.HEXADECIMAL] = hexadecimalEncodingAlgorithm; 70 table[EncodingAlgorithmIndexes.BASE64] = base64EncodingAlgorithm; 71 table[EncodingAlgorithmIndexes.SHORT] = shortEncodingAlgorithm; 72 table[EncodingAlgorithmIndexes.INT] = intEncodingAlgorithm; 73 table[EncodingAlgorithmIndexes.LONG] = longEncodingAlgorithm; 74 table[EncodingAlgorithmIndexes.BOOLEAN] = booleanEncodingAlgorithm; 75 table[EncodingAlgorithmIndexes.FLOAT] = floatEncodingAlgorithm; 76 table[EncodingAlgorithmIndexes.DOUBLE] = doubleEncodingAlgorithm; 77 table[EncodingAlgorithmIndexes.UUID] = uuidEncodingAlgorithm; 78 } 79 } 80 | Popular Tags |