@Override public Object read(final ObjectDataInput in) throws IOException { if (gzipEnabled) { return readGzipped(((InputStream) in), in.getClassLoader()); } return read(((InputStream) in), in.getClassLoader()); }
@Override public Object read(final ObjectDataInput in) throws IOException { if (gzipEnabled) { return readGzipped(((InputStream) in), in.getClassLoader()); } return read(((InputStream) in), in.getClassLoader()); }
@Override public Externalizable read(final ObjectDataInput in) throws IOException { String className = in.readUTF(); try { if (gzipEnabled) { return readGzipped(((InputStream) in), className, in.getClassLoader()); } return read((InputStream) in, className, in.getClassLoader()); } catch (Exception e) { throw new HazelcastSerializationException("Problem while reading Externalizable class: " + className + ", exception: " + e); } }
@Override public Externalizable read(final ObjectDataInput in) throws IOException { String className = in.readUTF(); try { if (gzipEnabled) { return readGzipped(((InputStream) in), className, in.getClassLoader()); } return read((InputStream) in, className, in.getClassLoader()); } catch (Exception e) { throw new HazelcastSerializationException("Problem while reading Externalizable class: " + className + ", exception: " + e); } }
@Override public Class read(final ObjectDataInput in) throws IOException { try { return ClassLoaderUtil.loadClass(in.getClassLoader(), in.readUTF()); } catch (ClassNotFoundException e) { throw new HazelcastSerializationException(e); } }
@Override public void readData(ObjectDataInput in) throws IOException { String klassName = in.readUTF(); try { klass = ClassLoaderUtil.loadClass(in.getClassLoader(), klassName); } catch (ClassNotFoundException e) { throw new HazelcastSerializationException("Failed to load class: " + klass, e); } }
@Override public Class read(final ObjectDataInput in) throws IOException { try { return ClassLoaderUtil.loadClass(in.getClassLoader(), in.readUTF()); } catch (ClassNotFoundException e) { throw new HazelcastSerializationException(e); } }
@Override public void readData(ObjectDataInput in) throws IOException { String klassName = in.readUTF(); try { klass = ClassLoaderUtil.loadClass(in.getClassLoader(), klassName); } catch (ClassNotFoundException e) { throw new HazelcastSerializationException("Failed to load class: " + klass, e); } }
@Override public Enum read(ObjectDataInput in) throws IOException { String clazzName = in.readUTF(); Class clazz; try { clazz = ClassLoaderUtil.loadClass(in.getClassLoader(), clazzName); } catch (ClassNotFoundException e) { throw new HazelcastSerializationException("Failed to deserialize enum: " + clazzName, e); } String name = in.readUTF(); return Enum.valueOf(clazz, name); } }
@Override public Enum read(ObjectDataInput in) throws IOException { String clazzName = in.readUTF(); Class clazz; try { clazz = ClassLoaderUtil.loadClass(in.getClassLoader(), clazzName); } catch (ClassNotFoundException e) { throw new HazelcastSerializationException("Failed to deserialize enum: " + clazzName, e); } String name = in.readUTF(); return Enum.valueOf(clazz, name); } }
className = in.readUTF(); if (null == aClass) { ds = ClassLoaderUtil.newInstance(in.getClassLoader(), className); return ds; } catch (Exception e) { e = tryClarifyNoSuchMethodException(in.getClassLoader(), className, e); throw rethrowReadException(id, factoryId, className, e);
className = in.readUTF(); if (null == aClass) { ds = ClassLoaderUtil.newInstance(in.getClassLoader(), className); return ds; } catch (Exception e) { e = tryClarifyNoSuchMethodException(in.getClassLoader(), className, e); throw rethrowReadException(id, factoryId, className, e);
disablePerEntryInvalidationEvents = in.readBoolean(); setClassLoader(in.getClassLoader()); this.serializationService = in.getSerializationService();
disablePerEntryInvalidationEvents = in.readBoolean(); setClassLoader(in.getClassLoader()); this.serializationService = in.getSerializationService();