public FSTClazzInfoRegistry getClassInfoRegistry() { return conf.getCLInfoRegistry(); }
public FSTClazzInfoRegistry getClassInfoRegistry() { return conf.getCLInfoRegistry(); }
@Override public FSTClazzInfo readClass() throws IOException, ClassNotFoundException { if (lastDirectClass != null ) { FSTClazzInfo clInfo = conf.getCLInfoRegistry().getCLInfo(lastDirectClass, conf); lastDirectClass = null; return clInfo; } return null; }
public FSTClazzInfo getClazzInfo(Class rowClass) { return getCLInfoRegistry().getCLInfo(rowClass, this); }
@Override public FSTClazzInfo readClass() throws IOException, ClassNotFoundException { if (lastDirectClass != null ) { FSTClazzInfo clInfo = conf.getCLInfoRegistry().getCLInfo(lastDirectClass, conf); lastDirectClass = null; return clInfo; } return null; }
public FSTClazzInfo getClazzInfo(Class rowClass) { return getCLInfoRegistry().getCLInfo(rowClass, this); }
protected void initRegistries(FSTConfiguration conf) { ignoreAnnotations = conf.getCLInfoRegistry().isIgnoreAnnotations(); clInfoRegistry = conf.getCLInfoRegistry(); objects = (FSTObjectRegistry) conf.getCachedObject(FSTObjectRegistry.class); if (objects == null) { objects = new FSTObjectRegistry(conf); } else { objects.clearForRead(conf); } }
public FSTObjectSerializer getSerNoStore() { return conf.getCLInfoRegistry().getSerializerRegistry().getSerializer(clazz); }
@Override public FSTClazzInfo readClass() throws IOException, ClassNotFoundException { if (lastDirectClass != null ) { FSTClazzInfo clInfo = conf.getCLInfoRegistry().getCLInfo(lastDirectClass, conf); lastDirectClass = null; return clInfo; } Object read = input.readObject(); String name = (String) read; String clzName = conf.getClassForCPName(name); return conf.getCLInfoRegistry().getCLInfo(classForName(clzName), conf); }
protected void addClassMapping( Class c, int id, FSTClazzInfo clInfo, FSTConfiguration conf ) { clzToId.put(c, id); if (clInfo==null) clInfo = conf.getCLInfoRegistry().getCLInfo(c, conf); if (idToClz.length<=id) { final FSTClazzInfo[] tmp = new FSTClazzInfo[id + 100]; System.arraycopy(idToClz,0,tmp,0,idToClz.length); idToClz = tmp; } idToClz[id] = clInfo; if ( parent == null ) { clInfo.setClzId(id); } }
protected void initRegistries(FSTConfiguration conf) { ignoreAnnotations = conf.getCLInfoRegistry().isIgnoreAnnotations(); clInfoRegistry = conf.getCLInfoRegistry(); objects = (FSTObjectRegistry) conf.getCachedObject(FSTObjectRegistry.class); if (objects == null) { objects = new FSTObjectRegistry(conf); } else { objects.clearForRead(conf); } }
public FSTObjectSerializer getSerNoStore() { return conf.getCLInfoRegistry().getSerializerRegistry().getSerializer(clazz); }
@Override public FSTClazzInfo readClass() throws IOException, ClassNotFoundException { if (lastDirectClass != null ) { FSTClazzInfo clInfo = conf.getCLInfoRegistry().getCLInfo(lastDirectClass, conf); lastDirectClass = null; return clInfo; } Object read = input.readObject(); String name = (String) read; String clzName = conf.getClassForCPName(name); return conf.getCLInfoRegistry().getCLInfo(classForName(clzName), conf); }
protected void addClassMapping( Class c, int id, FSTClazzInfo clInfo, FSTConfiguration conf ) { clzToId.put(c, id); if (clInfo==null) clInfo = conf.getCLInfoRegistry().getCLInfo(c, conf); if (idToClz.length<=id) { final FSTClazzInfo[] tmp = new FSTClazzInfo[id + 100]; System.arraycopy(idToClz,0,tmp,0,idToClz.length); idToClz = tmp; } idToClz[id] = clInfo; if ( parent == null ) { clInfo.setClzId(id); } }
public FSTClazzInfo decodeClass(FSTDecoder in, FSTConfiguration conf) throws IOException, ClassNotFoundException { short c = in.readFShort(); if ( c < LOWEST_CLZ_ID ) { // full class name String clName; if ( c==0) { clName = in.readStringUTF(); } else { clName = in.readStringAsc(); } Class cl = classForName(clName,conf); final FSTClazzInfo clInfo = conf.getCLInfoRegistry().getCLInfo(cl, conf); registerClassNoLookup(cl,clInfo,conf); return clInfo; } else { FSTClazzInfo aClass = getClazzFromId(c); if ( aClass == null ) { throw new RuntimeException("unable to find class for code "+c); } return aClass; } }
public FSTClazzInfo decodeClass(FSTDecoder in, FSTConfiguration conf) throws IOException, ClassNotFoundException { short c = in.readFShort(); if ( c < LOWEST_CLZ_ID ) { // full class name String clName; if ( c==0) { clName = in.readStringUTF(); } else { clName = in.readStringAsc(); } Class cl = classForName(clName,conf); final FSTClazzInfo clInfo = conf.getCLInfoRegistry().getCLInfo(cl, conf); registerClassNoLookup(cl,clInfo,conf); return clInfo; } else { FSTClazzInfo aClass = getClazzFromId(c); if ( aClass == null ) { throw new RuntimeException("unable to find class for code "+c); } return aClass; } }
FSTClazzInfo.FSTFieldInfo ref1 = new FSTClazzInfo.FSTFieldInfo(referencee.getPossibleClasses(), null, conf.getCLInfoRegistry().isIgnoreAnnotations()); for ( int i = 0; i < len; i++ ) { Object subArr = arr[i];
writeln(); FSTClazzInfo clInfo = conf.getCLInfoRegistry().getCLInfo(o.getClass(), conf); FSTClazzInfo.FSTFieldInfo[] fieldInfo = clInfo.getFieldInfo();
conf.addDefaultClazzes(); FSTSerializerRegistry reg = conf.getCLInfoRegistry().getSerializerRegistry(); reg.putSerializer(Class.class, new FSTClassSerializer(), false); reg.putSerializer(String.class, new FSTStringSerializer(), false);
conf.addDefaultClazzes(); FSTSerializerRegistry reg = conf.getCLInfoRegistry().getSerializerRegistry(); reg.putSerializer(Class.class, new FSTClassSerializer(), false); reg.putSerializer(String.class, new FSTStringSerializer(), false);