Class AudioFileLoader


  • public class AudioFileLoader
    extends java.lang.Object
    Locates 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.InputStream getInputStream​(@Nullable java.lang.String name, @NotNull java.lang.String action)
      Returns an input stream for an audio file.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AudioFileLoader

        public AudioFileLoader​(@Nullable
                               @Nullable DebugWriter debugSound)
        Private constructor to prevent instantiation.
        Parameters:
        debugSound - the writer for logging sound related information or null to 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.IOException
        Returns an input stream for an audio file. action identifies the audio file. name is an optional prefix.
        Parameters:
        name - the name
        action - the action; may be null
        Returns:
        the input stream
        Throws:
        java.io.IOException - if the file cannot be located