| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| ID3v2ChapterFrames |
|
| 1.5;1.5 |
| 1 | /* | |
| 2 | * Horizon Wimba Copyright (C)2006 | |
| 3 | * | |
| 4 | * This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser | |
| 5 | * General Public License as published by the Free Software Foundation; either version 2.1 of the License, | |
| 6 | * or (at your option) any later version. | |
| 7 | * | |
| 8 | * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even | |
| 9 | * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
| 10 | * See the GNU Lesser General Public License for more details. | |
| 11 | * | |
| 12 | * You should have received a copy of the GNU Lesser General Public License along with this library; if not, | |
| 13 | * you can getFields a copy from http://www.opensource.org/licenses/lgpl-license.php or write to the Free Software | |
| 14 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 15 | */ | |
| 16 | package org.jaudiotagger.tag.id3; | |
| 17 | ||
| 18 | import java.util.TreeSet; | |
| 19 | ||
| 20 | /** | |
| 21 | * Defines ID3 Chapter frames and collections that categorise frames. | |
| 22 | * <p/> | |
| 23 | * <p>For more details, please refer to the ID3 Chapter Frame specifications: | |
| 24 | * <ul> | |
| 25 | * <li><a href="http://www.id3.org/id3v2-chapters-1.0.txt">ID3 v2 Chapter Frame Spec</a> | |
| 26 | * </ul> | |
| 27 | * | |
| 28 | * @author Marc Gimpel, Horizon Wimba S.A. | |
| 29 | * @version $Id: ID3v2ChapterFrames.java 830 2009-11-12 12:23:47Z paultaylor $ | |
| 30 | */ | |
| 31 | public class ID3v2ChapterFrames extends ID3Frames | |
| 32 | { | |
| 33 | public static final String FRAME_ID_CHAPTER = "CHAP"; | |
| 34 | public static final String FRAME_ID_TABLE_OF_CONTENT = "CTOC"; | |
| 35 | ||
| 36 | private static ID3v2ChapterFrames id3v2ChapterFrames; | |
| 37 | ||
| 38 | public static ID3v2ChapterFrames getInstanceOf() | |
| 39 | { | |
| 40 | 0 | if (id3v2ChapterFrames == null) |
| 41 | { | |
| 42 | 0 | id3v2ChapterFrames = new ID3v2ChapterFrames(); |
| 43 | } | |
| 44 | 0 | return id3v2ChapterFrames; |
| 45 | } | |
| 46 | ||
| 47 | private ID3v2ChapterFrames() | |
| 48 | 0 | { |
| 49 | 0 | idToValue.put(FRAME_ID_CHAPTER, "Chapter"); |
| 50 | 0 | idToValue.put(FRAME_ID_TABLE_OF_CONTENT, "Table of content"); |
| 51 | 0 | createMaps(); |
| 52 | 0 | multipleFrames = new TreeSet<String>(); |
| 53 | 0 | discardIfFileAlteredFrames = new TreeSet<String>(); |
| 54 | 0 | } |
| 55 | } |