@Override protected ObjectStreamClass readClassDescriptor() throws IOException, ClassNotFoundException { int code = decodeInt(this); return oscSerializer.getObjectStreamClassFor(code, loader); }
@Override protected ObjectStreamClass readClassDescriptor() throws IOException, ClassNotFoundException { int code = decodeInt(this); if (localOnly) { ObjectStreamClass osc = oscSerializer.localGetObjectStreamClassFor(code); if (osc == null) { throw new ObjectStreamClassNotLocalException(); } return osc; } else { return oscSerializer.getObjectStreamClassFor(code, loader); } }
/** * Return a new copy of this entry, newly deserialized from the serialized state. * * @param strategy deserialization strategy * @return a newly deserialized entry * @throws IOException if de-serialization fails * @throws ClassNotFoundException if a necessary class definition is missing */ public T getDeserializedValueCopy(final SerializationStrategy<T> strategy) throws IOException, ClassNotFoundException { return strategy.deserialize(getValue()); }
public synchronized T getDeserializedValue(final SerializationStrategy<T> strategy, ClassLoader classLoader) throws IOException, ClassNotFoundException { if (cached == null) { cached = strategy.deserialize(getValue(), classLoader); nullByteArray(); } return cached; }
public Object deserializeStringKey(String key, ClassLoader loader) throws IOException, ClassNotFoundException { if (key.length() >= 1 && key.charAt(0) == MARKER) { // return readStringKey(new OIS(new StringSerializedObjectInputStream(key), oscSerializer, loader)); } return key; }
public Object localDeserializeStringKey(String key, ClassLoader loader) throws IOException, ClassNotFoundException { if (key.length() >= 1 && key.charAt(0) == MARKER) { try { return readStringKey(new OIS(new StringSerializedObjectInputStream(key), oscSerializer, loader, true)); } catch (ObjectStreamClassNotLocalException e) { return null; } } return key; }
@Override protected void writeClassDescriptor(final ObjectStreamClass desc) throws IOException { int code = oscSerializer.getMappingFor(desc); encodeInt(this, code); } }
public SerializedEntry(SerializedEntryParameters<T> params) { this.value = params.getSerialized(); this.createTime = params.getCreateTime(); this.setLastAccessedTimeInternal(params.getLastAccessedTime()); this.cached = params.getDeserialized(); }
public void processStoredValue(final TimestampedValue value) { if (!copyOnRead) { ((SerializedEntry) value).nullByteArray(); } }
/** * Return a new copy of this entry, newly deserialized from the serialized state. * * @param strategy deserialization strategy * @return a newly deserialized entry * @throws IOException if de-serialization fails * @throws ClassNotFoundException if a necessary class definition is missing */ public T getDeserializedValueCopy(final SerializationStrategy<T> strategy) throws IOException, ClassNotFoundException { return strategy.deserialize(getValue()); }
public synchronized T getDeserializedValue(final SerializationStrategy<T> strategy) throws IOException, ClassNotFoundException { if (cached == null) { cached = strategy.deserialize(getValue()); nullByteArray(); } return cached; }
@Override protected ObjectStreamClass readClassDescriptor() throws IOException, ClassNotFoundException { int code = decodeInt(this); return oscSerializer.getObjectStreamClassFor(code, loader); }
public Object deserializeStringKey(final String key) throws IOException, ClassNotFoundException { if (key.length() >= 1 && key.charAt(0) == MARKER) { // return readStringKey(new OIS(new StringSerializedObjectInputStream(key), oscSerializer)); } return key; }
@Override protected void writeClassDescriptor(final ObjectStreamClass desc) throws IOException { int code = oscSerializer.getMappingFor(desc); encodeInt(this, code); } }
public T getDeserializedValueCopy(final SerializationStrategy<T> strategy, ClassLoader classLoader) throws IOException, ClassNotFoundException { return strategy.deserialize(getValue(), classLoader); }
@Override protected ObjectStreamClass readClassDescriptor() throws IOException, ClassNotFoundException { int code = decodeInt(this); return oscSerializer.getObjectStreamClassFor(code, loader); }
/** * Return a new copy of this entry, newly deserialized from the serialized state, using a specific classloader. * * @param strategy deserialization strategy * @param classLoader loader to use during deserialization * @return a newly deserialized entry * @throws IOException if de-serialization fails * @throws ClassNotFoundException if a necessary class definition is missing */ public T getDeserializedValueCopy(final SerializationStrategy<T> strategy, final ClassLoader classLoader) throws IOException, ClassNotFoundException { return strategy.deserialize(getValue(), classLoader); }
/** * Return a new copy of this entry, newly deserialized from the serialized state, using a specific classloader. * * @param strategy deserialization strategy * @param classLoader loader to use during deserialization * @return a newly deserialized entry * @throws IOException if de-serialization fails * @throws ClassNotFoundException if a necessary class definition is missing */ public T getDeserializedValueCopy(final SerializationStrategy<T> strategy, final ClassLoader classLoader) throws IOException, ClassNotFoundException { return strategy.deserialize(getValue(), classLoader); }
/** * Return a new copy of this entry, newly deserialized from the serialized state, using a specific classloader. * * @param strategy deserialization strategy * @param classLoader loader to use during deserialization * @return a newly deserialized entry * @throws IOException if de-serialization fails * @throws ClassNotFoundException if a necessary class definition is missing */ public T getDeserializedValueCopy(final SerializationStrategy<T> strategy, final ClassLoader classLoader) throws IOException, ClassNotFoundException { return strategy.deserialize(getValue(), classLoader); }
public T getDeserializedValueCopy(final SerializationStrategy<T> strategy) throws IOException, ClassNotFoundException { return strategy.deserialize(getValue()); }