code: public StreamInfo readStreamInfo() throws IOException {
          readStreamSync();
          Metadata metadata = readNextMetadata();
          if (!(metadata instanceof StreamInfo)) throw new IOException("StreamInfo metadata block missing");
          return (StreamInfo) metadata;
      }
docs: Read the FLAC stream info.
  @return  The FLAC Stream Info record
  @throws IOException On read error