| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| VorbisPacketType |
|
| 1.0;1 |
| 1 | package org.jaudiotagger.audio.ogg.util; | |
| 2 | ||
| 3 | /** | |
| 4 | * Vorbis Packet Type | |
| 5 | * <p/> | |
| 6 | * In an Vorbis Stream there should be one instance of the three headers, and many audio packets | |
| 7 | */ | |
| 8 | 4 | public enum VorbisPacketType |
| 9 | { | |
| 10 | 4 | AUDIO(0), |
| 11 | 4 | IDENTIFICATION_HEADER(1), |
| 12 | 4 | COMMENT_HEADER(3), |
| 13 | 4 | SETUP_HEADER(5); |
| 14 | ||
| 15 | int type; | |
| 16 | ||
| 17 | VorbisPacketType(int type) | |
| 18 | 16 | { |
| 19 | 16 | this.type = type; |
| 20 | 16 | } |
| 21 | ||
| 22 | public int getType() | |
| 23 | { | |
| 24 | 658 | return type; |
| 25 | } | |
| 26 | } |