protected void annotateClass(Class cl) throws IOException { super.annotateClass(cl);
annotateClass(classToWrite);
annotateClass(classToWrite);
/** * @throws java.io.IOException Any exception thrown by the underlying OutputStream. */ protected void annotateClass(Class<?> cl) throws IOException { super.annotateClass(cl); }
/** * @throws java.io.IOException Any exception thrown by the underlying OutputStream. */ protected void annotateClass(Class<?> cl) throws IOException { super.annotateClass(cl); }
/** * @throws IOException Any exception thrown by the underlying OutputStream. */ protected void annotateClass(Class cl) throws IOException { super.annotateClass(cl); }
/** * @throws java.io.IOException Any exception thrown by the underlying OutputStream. */ protected void annotateClass(Class cl) throws IOException { super.annotateClass(cl); }
@Override protected void annotateClass(Class<?> c) throws IOException { check(c); super.annotateClass(c); } };
@Override protected void annotateClass(Class<?> c) throws IOException { AnonymousClassWarnings.check(c); super.annotateClass(c); } }) {
protected void annotateClass(Class clazz) throws IOException { super.annotateClass(clazz); ClassLoader classLoader = clazz.getClassLoader(); int loaderIdx; if (clazz.isPrimitive() || classLoader == null || isAncestorClassLoader(classLoader)) { loaderIdx = CLASSLOADER_IDX_NOT_SET; } else { Integer idx = (Integer) classLoadersIndexes.get(classLoader); if (idx == null) { idx = new Integer(classLoadersList.size()); classLoadersIndexes.put(classLoader, idx); classLoadersList.add(classLoader); } loaderIdx = idx.intValue(); } writeShort(loaderIdx); } }
protected void annotateClass(Class cl) throws IOException { super.annotateClass(cl);
protected void annotateClass(Class cl) throws IOException { super.annotateClass(cl);
annotateClass(classToWrite);
annotateClass(classToWrite);
annotateClass(classToWrite);
annotateClass(classToWrite);
annotateClass(classToWrite);
annotateClass(classToWrite);
/** * Writes class descriptor representing a standard (i.e., not a dynamic * proxy) class to stream. */ private void writeNonProxyDesc(ObjectStreamClass desc, boolean unshared) throws IOException { bout.writeByte(TC_CLASSDESC); handles.assign(unshared ? null : desc); if (protocol == PROTOCOL_VERSION_1) { // do not invoke class descriptor write hook with old protocol desc.writeNonProxy(this); } else { writeClassDescriptor(desc); } Class cl = desc.forClass(); bout.setBlockDataMode(true); annotateClass(cl); bout.setBlockDataMode(false); bout.writeByte(TC_ENDBLOCKDATA); writeClassDesc(desc.getSuperDesc(), false); }
/** * Writes class descriptor representing a standard (i.e., not a dynamic * proxy) class to stream. */ private void writeNonProxyDesc(ObjectStreamClass desc, boolean unshared) throws IOException { bout.writeByte(TC_CLASSDESC); handles.assign(unshared ? null : desc); if (protocol == PROTOCOL_VERSION_1) { // do not invoke class descriptor write hook with old protocol desc.writeNonProxy(this); } else { writeClassDescriptor(desc); } Class cl = desc.forClass(); bout.setBlockDataMode(true); annotateClass(cl); bout.setBlockDataMode(false); bout.writeByte(TC_ENDBLOCKDATA); writeClassDesc(desc.getSuperDesc(), false); }