2 * Sonitus - SonitusConfiguration.java - Copyright © 2013 David Roden
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 package net.pterodactylus.sonitus.config;
20 import com.thoughtworks.xstream.annotations.XStreamAlias;
23 * Sonitus instance configuration.
25 * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
27 @XStreamAlias("sonitus")
28 public class SonitusConfiguration {
30 /** The executables configuration. */
31 @XStreamAlias("executables")
32 private ExecutableConfiguration executableConfiguration;
35 * Returns the executable configuration.
37 * @return The executable configuration
39 public ExecutableConfiguration getExecutableConfiguration() {
40 return executableConfiguration;
44 * Configuration for the locations of the various native executables used by
47 * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
49 public static class ExecutableConfiguration {
51 /** The location of the LAME binary. */
53 private String lameLocation;
55 /** The location of the oggdec binary. */
56 @XStreamAlias("oggdec")
57 private String oggdecLocation;
59 /** The location of the oggenc binary. */
60 @XStreamAlias("oggenc")
61 private String oggencLocation;
63 /** The location of the flac binary. */
65 private String flacLocation;
67 /** The location of the sox binary. */
69 private String soxLocation;
72 * Returns the location of the LAME binary.
74 * @return The location of the LAME binary
76 public String getLameLocation() {
81 * Returns the location of the oggdec binary.
83 * @return The location of the oggdec binary
85 public String getOggdecLocation() {
86 return oggdecLocation;
90 * Returns the location of the oggenc binary.
92 * @return The location of the oggenc binary
94 public String getOggencLocation() {
95 return oggencLocation;
99 * Returns the location of the flac binary.
101 * @return The location of the flac binary
103 public String getFlacLocation() {
108 * Returns the location of the sox binary.
110 * @return The location of the sox binary
112 public String getSoxLocation() {