Class FlacMetadataReader


  • public class FlacMetadataReader
    extends java.lang.Object
    Handles reading one FLAC metadata blocks.
    • Constructor Detail

      • FlacMetadataReader

        public FlacMetadataReader()
    • Method Detail

      • readStreamInfoBlock

        public static FlacStreamInfo readStreamInfoBlock​(java.io.DataInput dataInput)
                                                  throws java.io.IOException
        Reads FLAC stream info metadata block.
        Parameters:
        dataInput - Data input where the block is read from
        Returns:
        Stream information
        Throws:
        java.io.IOException - On read error
      • readMetadataBlock

        public static boolean readMetadataBlock​(java.io.DataInput dataInput,
                                                java.io.InputStream inputStream,
                                                FlacTrackInfoBuilder trackInfoBuilder)
                                         throws java.io.IOException
        Parameters:
        dataInput - Data input where the block is read from
        inputStream - Input stream matching the data input
        trackInfoBuilder - Track info builder object where detected metadata is stored in
        Returns:
        True if there are more metadata blocks available
        Throws:
        java.io.IOException - On read error