Skip to content
This repository has been archived by the owner on Jun 5, 2019. It is now read-only.

Commit

Permalink
A test for Issue #18
Browse files Browse the repository at this point in the history
  • Loading branch information
becast committed May 15, 2016
1 parent 697573e commit 8610d4f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,21 @@
*/
package at.becast.youploader.youtube.io;

import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class UploadStream extends FileInputStream {
public class UploadStream extends BufferedInputStream {
private UploadEvent event;
private long limit;
private long size;
private long position;
private Boolean finished = false;

public UploadStream(File file, UploadEvent event) throws FileNotFoundException {
super(file);
super(new FileInputStream(file));
this.event = event;
this.limit = 0;
this.size = file.length();
Expand Down

0 comments on commit 8610d4f

Please sign in to comment.