- public void connect(Source source) throws ConnectException {
- checkNotNull(source, "source must not be null");
- checkState(source.metadata().encoding().equalsIgnoreCase("MP3"), "source must be MP3-encoded");
+ public void open(Metadata metadata) throws IOException {
+ checkNotNull(metadata, "metadata must not be null");
+ checkState(metadata.encoding().equalsIgnoreCase("MP3"), "source must be MP3-encoded");