test_class.file: jflac-codec/src/test/java/org/jflac/sound/spi/FlacAudioFileReaderTest.java
test_class.identifier: FlacAudioFileReaderTest
test_case.body: @Test
      public void testGetAudioFileFormatWithBufferedFlacStream() throws UnsupportedAudioFileException, IOException {
          final FlacAudioFileReader flacAudioFileReader = new FlacAudioFileReader();
          final File flacTestFile = getFlacTestFile("cymbals.flac");
  
          InputStream in = null;
          try {
              in = new BufferedInputStream(new FileInputStream(flacTestFile));
              assertTrue("For this test the stream MUST support mark()", in.markSupported());
              final AudioFileFormat fileFormat = flacAudioFileReader.getAudioFileFormat(in);
              assertNotNull(fileFormat);
              final AudioFormat format = fileFormat.getFormat();
              assertEquals(44100f, format.getSampleRate(), 0);
              assertEquals(16, format.getSampleSizeInBits());
              assertEquals(2, format.getChannels());
              assertEquals("FLAC", format.getEncoding().toString());
          } finally {
              if (in != null) {
                  try {
                      in.close();
                  } catch (IOException e) {
                      e.printStackTrace();
                  }
              }
          }
      }
test_case.class_method_signature: FlacAudioFileReaderTest.testGetAudioFileFormatWithBufferedFlacStream()
test_case.full_signature: @Test public void testGetAudioFileFormatWithBufferedFlacStream()
test_case.identifier: testGetAudioFileFormatWithBufferedFlacStream
test_case.invocations: getFlacTestFile assertTrue markSupported getAudioFileFormat assertNotNull getFormat assertEquals getSampleRate assertEquals getSampleSizeInBits assertEquals getChannels assertEquals toString getEncoding close printStackTrace
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetAudioFileFormatWithBufferedFlacStream()
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 AudioFileFormat getAudioFileFormat(File file) throws UnsupportedAudioFileException, IOException {
          InputStream inputStream = null;
          try {
              inputStream = new FileInputStream(file);
              return getAudioFileFormat(inputStream, (int) file.length());
          } finally {
              if (inputStream != null) inputStream.close();
          }
      }
focal_method.class_method_signature: FlacAudioFileReader.getAudioFileFormat(File file)
focal_method.full_signature: public AudioFileFormat getAudioFileFormat(File file)
focal_method.identifier: getAudioFileFormat
focal_method.invocations: getAudioFileFormat length close
focal_method.modifiers: public
focal_method.parameters: (File file)
focal_method.return: AudioFileFormat
focal_method.signature: AudioFileFormat getAudioFileFormat(File file)