示例#1
0
        /**
         * Debug / diagnosis method<br/>
         * Gets the POI implementation class for a given <tt>sid</tt>.  Only a subset of the any BIFF
         * records are actually interpreted by POI.  A few others are known but not interpreted
         * (see {@link UnknownRecord#getBiffName(int)}).
         * @return the POI implementation class for the specified record <tt>sid</tt>.
         * <code>null</code> if the specified record is not interpreted by POI.
         */
        public static Type GetRecordClass(int sid)
        {
            I_RecordCreator rc = _recordCreatorsById[(short)sid];

            if (rc == null)
            {
                return(null);
            }
            return(rc.GetRecordClass());
        }
示例#2
0
 public static Record CreateSingleRecord(RecordInputStream in1)
 {
     if (_recordCreatorsById.ContainsKey(in1.Sid))
     {
         I_RecordCreator constructor = _recordCreatorsById[in1.Sid];
         return(constructor.Create(in1));
     }
     else
     {
         return(new UnknownRecord(in1));
     }
 }
示例#3
0
        /**
         * Debug / diagnosis method<br/>
         * Gets the POI implementation class for a given <tt>sid</tt>.  Only a subset of the any BIFF
         * records are actually interpreted by POI.  A few others are known but not interpreted
         * (see {@link UnknownRecord#getBiffName(int)}).
         * @return the POI implementation class for the specified record <tt>sid</tt>.
         * <code>null</code> if the specified record is not interpreted by POI.
         */
        public static Type GetRecordClass(int sid)
        {
            I_RecordCreator rc = null;

            if (_recordCreatorsById.ContainsKey((short)sid))
            {
                rc = _recordCreatorsById[(short)sid];
            }

            if (rc == null)
            {
                return(null);
            }
            return(rc.GetRecordClass());
        }