Code example for DataOutput

Methods: write, writeShort

0
    public static int tag() { 
        return 0x03; 
    } 
 
    protected void doWrite(DataOutput out) throws IOException {
        out.writeShort(trackId);
        out.write(0);
        super.doWrite(out);
    } 
     
    protected void parse(InputStream input) throws IOException {
        trackId = (int)ReaderBE.readInt16(input);
        input.read();
        super.parse(input);
    } 
 
    public int getTrackId() { 
        return trackId;
    } 
}