test_class.file: jflac-codec/src/test/java/org/jflac/sound/spi/FlacAudioFileReaderTest.java
test_class.identifier: FlacAudioFileReaderTest
test_case.body: @Test
      public void testGetAudioInputStreamWithUnsupportedFile() throws IOException {
          final FlacAudioFileReader flacAudioFileReader = new FlacAudioFileReader();
          final File file = File.createTempFile("flacTest", ".wav");
          final OutputStream out = new FileOutputStream(file);
          out.write(new byte[2048]);
          out.close();
          try {
              flacAudioFileReader.getAudioInputStream(file);
              fail("Expected UnsupportedAudioFileException");
          } catch (UnsupportedAudioFileException e) {
              // expected this
          } finally {
              file.delete();
          }
      }
test_case.class_method_signature: FlacAudioFileReaderTest.testGetAudioInputStreamWithUnsupportedFile()
test_case.full_signature: @Test public void testGetAudioInputStreamWithUnsupportedFile()
test_case.identifier: testGetAudioInputStreamWithUnsupportedFile
test_case.invocations: createTempFile write close getAudioInputStream fail delete
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetAudioInputStreamWithUnsupportedFile()
focal_class.declarator: DEBUG = false
focal_class.modifier: private static final
focal_class.original_string: private static final boolean DEBUG = false;
focal_class.type: boolean
focal_class.var_name: DEBUG
focal_class.declarator: KEY_DURATION = "duration"
focal_class.modifier: public static final
focal_class.original_string: public static final String KEY_DURATION = "duration";
focal_class.type: String
focal_class.var_name: KEY_DURATION
focal_class.declarator: decoder
focal_class.modifier: private
focal_class.original_string: private FLACDecoder decoder;
focal_class.type: FLACDecoder
focal_class.var_name: decoder
focal_class.declarator: streamInfo
focal_class.modifier: private
focal_class.original_string: private StreamInfo streamInfo;
focal_class.type: StreamInfo
focal_class.var_name: streamInfo
focal_class.file: jflac-codec/src/main/java/org/jflac/sound/spi/FlacAudioFileReader.java
focal_class.identifier: FlacAudioFileReader
focal_class.class_method_signature: FlacAudioFileReader.getAudioFileFormat(File file)
focal_class.full_signature: public AudioFileFormat getAudioFileFormat(File file)
focal_class.identifier: getAudioFileFormat
focal_class.modifiers: public
focal_class.parameters: (File file)
focal_class.return: AudioFileFormat
focal_class.signature: AudioFileFormat getAudioFileFormat(File file)
focal_class.class_method_signature: FlacAudioFileReader.getAudioFileFormat(URL url)
focal_class.full_signature: public AudioFileFormat getAudioFileFormat(URL url)
focal_class.identifier: getAudioFileFormat
focal_class.modifiers: public
focal_class.parameters: (URL url)
focal_class.return: AudioFileFormat
focal_class.signature: AudioFileFormat getAudioFileFormat(URL url)
focal_class.class_method_signature: FlacAudioFileReader.getAudioFileFormat(InputStream stream)
focal_class.full_signature: public AudioFileFormat getAudioFileFormat(InputStream stream)
focal_class.identifier: getAudioFileFormat
focal_class.modifiers: public
focal_class.parameters: (InputStream stream)
focal_class.return: AudioFileFormat
focal_class.signature: AudioFileFormat getAudioFileFormat(InputStream stream)
focal_class.class_method_signature: FlacAudioFileReader.getAudioFileFormat(InputStream bitStream, int mediaLength)
focal_class.full_signature: protected AudioFileFormat getAudioFileFormat(InputStream bitStream, int mediaLength)
focal_class.identifier: getAudioFileFormat
focal_class.modifiers: protected
focal_class.parameters: (InputStream bitStream, int mediaLength)
focal_class.return: AudioFileFormat
focal_class.signature: AudioFileFormat getAudioFileFormat(InputStream bitStream, int mediaLength)
focal_class.class_method_signature: FlacAudioFileReader.getAudioInputStream(File file)
focal_class.full_signature: public AudioInputStream getAudioInputStream(File file)
focal_class.identifier: getAudioInputStream
focal_class.modifiers: public
focal_class.parameters: (File file)
focal_class.return: AudioInputStream
focal_class.signature: AudioInputStream getAudioInputStream(File file)
focal_class.class_method_signature: FlacAudioFileReader.getAudioInputStream(URL url)
focal_class.full_signature: public AudioInputStream getAudioInputStream(URL url)
focal_class.identifier: getAudioInputStream
focal_class.modifiers: public
focal_class.parameters: (URL url)
focal_class.return: AudioInputStream
focal_class.signature: AudioInputStream getAudioInputStream(URL url)
focal_class.class_method_signature: FlacAudioFileReader.getAudioInputStream(final InputStream stream)
focal_class.full_signature: public AudioInputStream getAudioInputStream(final InputStream stream)
focal_class.identifier: getAudioInputStream
focal_class.modifiers: public
focal_class.parameters: (final InputStream stream)
focal_class.return: AudioInputStream
focal_class.signature: AudioInputStream getAudioInputStream(final InputStream stream)
focal_class.class_method_signature: FlacAudioFileReader.getAudioInputStream(InputStream inputStream, int medialength)
focal_class.full_signature: protected AudioInputStream getAudioInputStream(InputStream inputStream, int medialength)
focal_class.identifier: getAudioInputStream
focal_class.modifiers: protected
focal_class.parameters: (InputStream inputStream, int medialength)
focal_class.return: AudioInputStream
focal_class.signature: AudioInputStream getAudioInputStream(InputStream inputStream, int medialength)
focal_class.superclass: extends AudioFileReader
focal_method.body: public AudioInputStream getAudioInputStream(File file) throws UnsupportedAudioFileException, IOException {
          InputStream inputStream = new FileInputStream(file);
          try {
              return getAudioInputStream(inputStream, (int) file.length());
          } catch (UnsupportedAudioFileException e) {
              try {
                  inputStream.close();
              } catch (IOException e1) {
                  e1.printStackTrace();
              }
              throw e;
          } catch (IOException e) {
              try {
                  inputStream.close();
              } catch (IOException e1) {
                  e1.printStackTrace();
              }
              throw e;
          }
      }
focal_method.class_method_signature: FlacAudioFileReader.getAudioInputStream(File file)
focal_method.full_signature: public AudioInputStream getAudioInputStream(File file)
focal_method.identifier: getAudioInputStream
focal_method.invocations: getAudioInputStream length close printStackTrace close printStackTrace
focal_method.modifiers: public
focal_method.parameters: (File file)
focal_method.return: AudioInputStream
focal_method.signature: AudioInputStream getAudioInputStream(File file)