FileDocCategorySizeDatePackage
BaseLocationBox.javaAPI Docmp4parser 1.0-RC-173319Wed Dec 19 20:10:37 GMT 2012com.googlecode.mp4parser.boxes.ultraviolet

BaseLocationBox

public class BaseLocationBox extends com.googlecode.mp4parser.AbstractFullBox

Fields Summary
String
baseLocation
String
purchaseLocation
Constructors Summary
public BaseLocationBox()


      
        super("bloc");
    
public BaseLocationBox(String baseLocation, String purchaseLocation)

        super("bloc");
        this.baseLocation = baseLocation;
        this.purchaseLocation = purchaseLocation;
    
Methods Summary
public void_parseDetails(java.nio.ByteBuffer content)

        parseVersionAndFlags(content);
        baseLocation = IsoTypeReader.readString(content);
        content.get(new byte[256 - Utf8.utf8StringLengthInBytes(baseLocation) - 1]);
        purchaseLocation = IsoTypeReader.readString(content);
        content.get(new byte[256 - Utf8.utf8StringLengthInBytes(purchaseLocation) - 1]);
        content.get(new byte[512]);
    
public booleanequals(java.lang.Object o)

        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        BaseLocationBox that = (BaseLocationBox) o;

        if (baseLocation != null ? !baseLocation.equals(that.baseLocation) : that.baseLocation != null) return false;
        if (purchaseLocation != null ? !purchaseLocation.equals(that.purchaseLocation) : that.purchaseLocation != null)
            return false;

        return true;
    
public java.lang.StringgetBaseLocation()

        return baseLocation;
    
protected voidgetContent(java.nio.ByteBuffer byteBuffer)

        writeVersionAndFlags(byteBuffer);
        byteBuffer.put(Utf8.convert(baseLocation));
        byteBuffer.put(new byte[256 - Utf8.utf8StringLengthInBytes(baseLocation)]); // string plus term zero
        byteBuffer.put(Utf8.convert(purchaseLocation));
        byteBuffer.put(new byte[256 - Utf8.utf8StringLengthInBytes(purchaseLocation)]); // string plus term zero
        byteBuffer.put(new byte[512]);
    
protected longgetContentSize()

        return 1028;
    
public java.lang.StringgetPurchaseLocation()

        return purchaseLocation;
    
public inthashCode()

        int result = baseLocation != null ? baseLocation.hashCode() : 0;
        result = 31 * result + (purchaseLocation != null ? purchaseLocation.hashCode() : 0);
        return result;
    
public voidsetBaseLocation(java.lang.String baseLocation)

        this.baseLocation = baseLocation;
    
public voidsetPurchaseLocation(java.lang.String purchaseLocation)

        this.purchaseLocation = purchaseLocation;