/*
 * This file is part of libbluray
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library. If not, see
 * <http://www.gnu.org/licenses/>.
 */

package org.bluray.ti;

public class DiscImpl implements Disc {
    DiscImpl(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    private String id;
}

@@ -811,56 +811,551 @@
     
-this.id = id;%0A    %7D%0A%0A    public String getId() %7B
+/* strip leading zeros */%0A        int i;%0A        for (i = 0; i %3C id.length(); i++) %7B%0A            if (id.charAt(i) != '0')%0A                break;%0A        %7D%0A        this.id = id.substring(i);%0A        if (this.id.length() %3C 1) %7B%0A            this.id = id;%0A            org.videolan.Logger.getLogger(%22DiscImpl%22).error(%22Invalid Disc ID %22 + this.id);%0A        %7D%0A    %7D%0A%0A    public String getId() %7B%0A        /* Returns the 128-bit identifier of this disc (from id.bdmv), without leading zeros.%0A           Each character in the String represents 4 bits. */
 %0A   

remove leading zeros from Disc ID