Skip to content

Commit

Permalink
Add link to Examples.java
Browse files Browse the repository at this point in the history
  • Loading branch information
XMB5 committed Jan 4, 2018
1 parent 07a3589 commit 7e81036
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Uses java 8 and dependends on [org.json/json](https://mvnrepository.com/artifact

## Examples
The video used in these examples is [Despacito](https://www.youtube.com/watch?v=kJQP7kiw5Fk)
More examples in [Examples.java](src/main/java/com/shfdevelopment/yougetj/Examples.java)
### Download a video
```java
InputStream videoIn = null;
Expand Down Expand Up @@ -94,7 +95,7 @@ try {
//read from input stream, and write to output stream
byte[] buf = new byte[8192];
int amountRead;
while ((amountRead = videoIn.read(buf)) != -1) {
while ((amountRead = v``__********__``ideoIn.read(buf)) != -1) {
fileOut.write(buf, 0, amountRead);
}

Expand Down

0 comments on commit 7e81036

Please sign in to comment.