Class AudioFileLoader
- java.lang.Object
-
- com.realtime.crossfire.jxclient.sound.AudioFileLoader
-
public class AudioFileLoader extends java.lang.ObjectLocates audio files.
-
-
Constructor Summary
Constructors Constructor Description AudioFileLoader(@Nullable DebugWriter debugSound)Private constructor to prevent instantiation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.io.InputStreamgetInputStream(@Nullable java.lang.String name, @NotNull java.lang.String action)Returns an input stream for an audio file.
-
-
-
Constructor Detail
-
AudioFileLoader
public AudioFileLoader(@Nullable @Nullable DebugWriter debugSound)Private constructor to prevent instantiation.- Parameters:
debugSound- the writer for logging sound related information ornullto not log
-
-
Method Detail
-
getInputStream
@NotNull public @NotNull java.io.InputStream getInputStream(@Nullable @Nullable java.lang.String name, @NotNull @NotNull java.lang.String action) throws java.io.IOExceptionReturns an input stream for an audio file.actionidentifies the audio file.nameis an optional prefix.- Parameters:
name- the nameaction- the action; may benull- Returns:
- the input stream
- Throws:
java.io.IOException- if the file cannot be located
-
-