public void writeObject(JBossSeralizationOutputInterface output, ObjectsCache cache, ClassMetaData metadata, Object obj) throws IOException
{
Persister persister = PersistResolver.resolvePersister(obj,metadata);
output.writeByte(persister.getId());
persister.writeData(metadata, cache.getOutput(), obj, cache.getSubstitution());
}
public Object readObjectSpecialCase(JBossSeralizationInputInterface input, ObjectsCache cache, byte byteIdentify) throws IOException
{
return input.readImmutable(byteIdentify,cache);