FileDocCategorySizeDatePackage
SubtitleSampleEntry.javaAPI Docmp4parser 1.0-RC-172055Wed Dec 19 20:10:38 GMT 2012com.coremedia.iso.boxes.sampleentry

SubtitleSampleEntry

public class SubtitleSampleEntry extends SampleEntry
Created by IntelliJ IDEA. User: magnus Date: 2012-03-08 Time: 11:36 To change this template use File | Settings | File Templates.

Fields Summary
public static final String
TYPE1
public static final String
TYPE_ENCRYPTED
private String
namespace
private String
schemaLocation
private String
imageMimeType
Constructors Summary
public SubtitleSampleEntry(String type)


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

        _parseReservedAndDataReferenceIndex(content);
        namespace = IsoTypeReader.readString(content);
        schemaLocation = IsoTypeReader.readString(content);
        imageMimeType = IsoTypeReader.readString(content);
        _parseChildBoxes(content);
    
protected voidgetContent(java.nio.ByteBuffer byteBuffer)

        _writeReservedAndDataReferenceIndex(byteBuffer);
        IsoTypeWriter.writeUtf8String(byteBuffer, namespace);
        IsoTypeWriter.writeUtf8String(byteBuffer, schemaLocation);
        IsoTypeWriter.writeUtf8String(byteBuffer, imageMimeType);
    
protected longgetContentSize()

        long contentSize = 8 + namespace.length() + schemaLocation.length() + imageMimeType.length() + 3;
        return contentSize;
    
public java.lang.StringgetImageMimeType()

        return imageMimeType;
    
public java.lang.StringgetNamespace()

        return namespace;
    
public java.lang.StringgetSchemaLocation()

        return schemaLocation;
    
public voidsetImageMimeType(java.lang.String imageMimeType)

        this.imageMimeType = imageMimeType;
    
public voidsetNamespace(java.lang.String namespace)

        this.namespace = namespace;
    
public voidsetSchemaLocation(java.lang.String schemaLocation)

        this.schemaLocation = schemaLocation;