Code example for DataInputStream

Methods: readUnsignedShort

0
     * Construct object from file stream. 
     * @param file Input stream 
     * @throws IOException 
     */ 
    LineNumber(DataInputStream file) throws IOException {
        this(file.readUnsignedShort(), file.readUnsignedShort());
    } 
 
 
    /** 
     * @param start_pc Program Counter (PC) corresponds to 
     * @param line_number line number in source file 
     */ 
    public LineNumber(int start_pc, int line_number) {
        this.start_pc = start_pc;
        this.line_number = line_number;
    } 
 
 
    /** 
     * Called by objects that are traversing the nodes of the tree implicitely