public void writeKnownAttributes(GrowableConstantPool gcp,
			DataOutputStream output) throws IOException {
		if (bytecode != null) {
			output.writeShort(gcp.putUTF8("Code"));
			output.writeInt(bytecode.getSize());
			bytecode.write(gcp, output);
		}
		if (exceptions != null) {
			int count = exceptions.length;
			output.writeShort(gcp.putUTF8("Exceptions"));
			output.writeInt(2 + count * 2);
			output.writeShort(count);
			for (int i = 0; i < count; i++)
				output.writeShort(gcp.putClassName(exceptions[i]));
		}
		if (syntheticFlag) {
			output.writeShort(gcp.putUTF8("Synthetic"));
			output.writeInt(0);
		}
		if (deprecatedFlag) {
			output.writeShort(gcp.putUTF8("Deprecated"));
			output.writeInt(0);
		}
	}