@Override public void recover(InputStream in) throws Exception { MarshalInputStream s = new MarshalInputStream(in, ActLogHandler.class.getClassLoader(), false, null, Collections.EMPTY_LIST); s.useCodebaseAnnotations(); state = (Activation) s.readObject(); }
/** * Reads and returns a class annotation string value (possibly <code>null</code>) that was * written by a corresponding <code>MarshalOutputStream</code> implementation. * * <p><code>MarshalInputStream</code> implements this method to just read the annotation value * from this stream using {@link ObjectInputStream#readObject readObject}, and if * <code>readObject</code> returns a non-<code>null</code> value that is not a * <code>String</code>, an {@link InvalidObjectException} is thrown. * * <p>A subclass can override this method to read the annotation from a different location. * * @return the class annotation string value read (possibly <code>null</code>) * @throws IOException if an I/O exception occurs reading the annotation * @throws ClassNotFoundException if a <code>ClassNotFoundException</code> occurs reading the * annotation **/ protected String readAnnotation() throws IOException, ClassNotFoundException { try { return (String) readObject(); } catch (ClassCastException e) { InvalidObjectException ioe = new InvalidObjectException("annotation not String or null"); ioe.initCause(e); throw ioe; } } }
return (String) readObject(); } catch (ClassCastException e) { InvalidObjectException ioe =
@Override public void readUpdate(InputStream in) throws Exception { MarshalInputStream s = new MarshalInputStream(in, ActLogHandler.class.getClassLoader(), false, null, Collections.EMPTY_LIST); s.useCodebaseAnnotations(); applyUpdate(s.readObject()); }
bcl, false, null, Collections.EMPTY_SET); in.useCodebaseAnnotations(); verifier = (TrustVerifier) in.readObject(); in.close();
bcl, false, null, Collections.EMPTY_SET, true); in.useCodebaseAnnotations(); verifier = (TrustVerifier) in.readObject(); in.close();