Skip to content

Commit

Permalink
Stream example added
Browse files Browse the repository at this point in the history
  • Loading branch information
sfuhrm authored Nov 27, 2017
1 parent 5fd95a6 commit dc69397
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,13 @@ by creating one instance and using it

// 5000ms timeout, user agent is Demo agent/1.0
RadioBrowser browser = new RadioBrowser(5000, "Demo agent/1.0");
// retrieve the first 16 stations
List<Station> stations = browser.listStations(Paging.at(0,16));
// print the first 64 stations in station name order
browser.listStations(ListParameter.create().order(FieldName.name))
.limit(64)
.forEach(s -> System.out.printf("%s: %s%n",
s.getName(),
s.getUrl()
));

### How it is tested

Expand Down

0 comments on commit dc69397

Please sign in to comment.