1 48 49 package com.caucho.hessian.io; 50 51 import java.io.IOException ; 52 import java.util.Vector ; 53 54 57 public class EnumerationDeserializer extends AbstractListDeserializer { 58 private static EnumerationDeserializer _deserializer; 59 60 public static EnumerationDeserializer create() 61 { 62 if (_deserializer == null) 63 _deserializer = new EnumerationDeserializer(); 64 65 return _deserializer; 66 } 67 68 public Object readList(AbstractHessianInput in, int length) 69 throws IOException 70 { 71 Vector list = new Vector (); 72 73 in.addRef(list); 74 75 while (! in.isEnd()) 76 list.add(in.readObject()); 77 78 in.readEnd(); 79 80 return list.elements(); 81 } 82 } 83 84 85 | Popular Tags |