FileDocCategorySizeDatePackage
LocationInformationBox.javaAPI Docmp4parser 1.0-RC-173431Wed Dec 19 20:10:38 GMT 2012com.coremedia.iso.boxes.threegpp26244

LocationInformationBox

public class LocationInformationBox extends com.googlecode.mp4parser.AbstractFullBox
Location Information Box as specified in TS 26.244.

Fields Summary
public static final String
TYPE
private String
language
private String
name
private int
role
private double
longitude
private double
latitude
private double
altitude
private String
astronomicalBody
private String
additionalNotes
Constructors Summary
public LocationInformationBox()


      
        super(TYPE);
    
Methods Summary
public void_parseDetails(java.nio.ByteBuffer content)

        parseVersionAndFlags(content);
        language = IsoTypeReader.readIso639(content);
        name = IsoTypeReader.readString(content);
        role = IsoTypeReader.readUInt8(content);
        longitude = IsoTypeReader.readFixedPoint1616(content);
        latitude = IsoTypeReader.readFixedPoint1616(content);
        altitude = IsoTypeReader.readFixedPoint1616(content);
        astronomicalBody = IsoTypeReader.readString(content);
        additionalNotes = IsoTypeReader.readString(content);
    
public java.lang.StringgetAdditionalNotes()

        return additionalNotes;
    
public doublegetAltitude()

        return altitude;
    
public java.lang.StringgetAstronomicalBody()

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

        writeVersionAndFlags(byteBuffer);
        IsoTypeWriter.writeIso639(byteBuffer, language);
        byteBuffer.put(Utf8.convert(name));
        byteBuffer.put((byte) 0);
        IsoTypeWriter.writeUInt8(byteBuffer, role);
        IsoTypeWriter.writeFixedPoint1616(byteBuffer, longitude);
        IsoTypeWriter.writeFixedPoint1616(byteBuffer, latitude);
        IsoTypeWriter.writeFixedPoint1616(byteBuffer, altitude);
        byteBuffer.put(Utf8.convert(astronomicalBody));
        byteBuffer.put((byte) 0);
        byteBuffer.put(Utf8.convert(additionalNotes));
        byteBuffer.put((byte) 0);
    
protected longgetContentSize()

        return 22 + Utf8.convert(name).length + Utf8.convert(astronomicalBody).length + Utf8.convert(additionalNotes).length;
    
public java.lang.StringgetLanguage()

        return language;
    
public doublegetLatitude()

        return latitude;
    
public doublegetLongitude()

        return longitude;
    
public java.lang.StringgetName()

        return name;
    
public intgetRole()

        return role;
    
public voidsetAdditionalNotes(java.lang.String additionalNotes)

        this.additionalNotes = additionalNotes;
    
public voidsetAltitude(double altitude)

        this.altitude = altitude;
    
public voidsetAstronomicalBody(java.lang.String astronomicalBody)

        this.astronomicalBody = astronomicalBody;
    
public voidsetLanguage(java.lang.String language)

        this.language = language;
    
public voidsetLatitude(double latitude)

        this.latitude = latitude;
    
public voidsetLongitude(double longitude)

        this.longitude = longitude;
    
public voidsetName(java.lang.String name)

        this.name = name;
    
public voidsetRole(int role)

        this.role = role;