1package com.coremedia.iso.boxes.apple;
2
3import com.coremedia.iso.Utf8;
4
5/**
6 *
7 */
8public final class AppleCustomGenreBox extends AbstractAppleMetaDataBox {
9    public static final String TYPE = "\u00a9gen";
10
11
12    public AppleCustomGenreBox() {
13        super(TYPE);
14        appleDataBox = AppleDataBox.getStringAppleDataBox();
15    }
16
17    public void setGenre(String genre) {
18        appleDataBox = new AppleDataBox();
19        appleDataBox.setVersion(0);
20        appleDataBox.setFlags(1);
21        appleDataBox.setFourBytes(new byte[4]);
22        appleDataBox.setData(Utf8.convert(genre));
23    }
24
25    public String getGenre() {
26        return Utf8.convert(appleDataBox.getData());
27    }
28}