/** * @see java.io.InputStream#read() */ public int read() throws IOException { int read = in.read(); bytesUploaded += (read < 0) ? 0 : 1; onUploadUpdate(bytesUploaded, totalBytes); return read; }
/** * @see java.io.InputStream#read() */ @Override public int read() throws IOException { int read = in.read(); bytesUploaded += (read < 0) ? 0 : 1; onUploadUpdate(bytesUploaded, totalBytes); return read; }
/** * @see java.io.InputStream#read(byte[]) */ public int read(byte[] b) throws IOException { int read = in.read(b); bytesUploaded += (read < 0) ? 0 : read; onUploadUpdate(bytesUploaded, totalBytes); return read; }
/** * @see java.io.InputStream#read(byte[]) */ @Override public int read(byte[] b) throws IOException { int read = in.read(b); bytesUploaded += (read < 0) ? 0 : read; onUploadUpdate(bytesUploaded, totalBytes); return read; }
/** * @see java.io.InputStream#read(byte[], int, int) */ @Override public int read(byte[] b, int off, int len) throws IOException { int read = in.read(b, off, len); bytesUploaded += (read < 0) ? 0 : read; onUploadUpdate(bytesUploaded, totalBytes); return read; }
/** * @see java.io.InputStream#read(byte[], int, int) */ public int read(byte[] b, int off, int len) throws IOException { int read = in.read(b, off, len); bytesUploaded += (read < 0) ? 0 : read; onUploadUpdate(bytesUploaded, totalBytes); return read; }