-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactoring ComponentType into own class
- Loading branch information
1 parent
78862a2
commit c052771
Showing
3 changed files
with
79 additions
and
56 deletions.
There are no files selected for viewing
51 changes: 51 additions & 0 deletions
51
src/main/java/nl/digitalekabeltelevisie/data/mpeg/ComponentType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/** | ||
* | ||
* http://www.digitalekabeltelevisie.nl/dvb_inspector | ||
* | ||
* This code is Copyright 2009-2024 by Eric Berendsen ([email protected]) | ||
* | ||
* This file is part of DVB Inspector. | ||
* | ||
* DVB Inspector is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* DVB Inspector is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with DVB Inspector. If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* The author requests that he be notified of any application, applet, or | ||
* other binary that makes use of this code, but that's more out of curiosity | ||
* than anything and is not required. | ||
* | ||
*/ | ||
package nl.digitalekabeltelevisie.data.mpeg; | ||
|
||
public enum ComponentType { | ||
AC3("Dolby Audio (AC3)"), | ||
E_AC3("Enhanced Dolby Audio (AC3)"), | ||
VBI("VBI Data"), | ||
TELETEXT("Teletext"), | ||
DVB_SUBTITLING("DVB subtitling"), | ||
AIT("Application Information Table (AIT)"), | ||
RCT("Related Content Table (RCT)"), | ||
T2MI("T2-MI"), | ||
TTML("TTML subtitling"), | ||
AC4("Dolby AC-4 Audio"), | ||
SMPTE2038("SMPTE 2038"); | ||
|
||
private final String description; | ||
|
||
ComponentType(String description) { | ||
this.description = description; | ||
} | ||
|
||
public String getDescription() { | ||
return description; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* | ||
* http://www.digitalekabeltelevisie.nl/dvb_inspector | ||
* | ||
* This code is Copyright 2009-2023 by Eric Berendsen ([email protected]) | ||
* This code is Copyright 2009-2024 by Eric Berendsen ([email protected]) | ||
* | ||
* This file is part of DVB Inspector. | ||
* | ||
|
@@ -82,30 +82,6 @@ | |
* | ||
*/ | ||
public class TransportStream implements TreeNode{ | ||
|
||
public enum ComponentType{ | ||
AC3("Dolby Audio (AC3)"), | ||
E_AC3("Enhanced Dolby Audio (AC3)"), | ||
VBI("VBI Data"), | ||
TELETEXT("Teletext"), | ||
DVB_SUBTITLING("DVB subtitling"), | ||
AIT("Application Information Table (AIT)"), | ||
RCT("Related Content Table (RCT)"), | ||
T2MI("T2-MI"), | ||
TTML("TTML subtitling"), | ||
AC4("Dolby AC-4 Audio"), | ||
SMPTE2038("SMPTE 2038"); | ||
|
||
private final String description; | ||
|
||
ComponentType(String description){ | ||
this.description = description; | ||
} | ||
|
||
public String getDescription() { | ||
return description; | ||
} | ||
} | ||
|
||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters