KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > python > compiler > APIVersion


1 // Copyright (c) Corporation for National Research Initiatives
2

3 package org.python.compiler;
4 import java.io.*;
5
6 public class APIVersion extends Attribute {
7     int attName;
8     int version;
9
10     public APIVersion(int version, ConstantPool pool) throws IOException {
11         attName = pool.UTF8("org.python.APIVersion");
12         this.version = version;
13     }
14
15     public void write(DataOutputStream stream) throws IOException {
16         stream.writeShort(attName);
17         stream.writeInt(4);
18         stream.writeInt(version);
19     }
20 }
21
Popular Tags