diff src/org/tmatesoft/hg/internal/FilterByteChannel.java @ 148:1a7a9a20e1f9

Exceptions, javadoc. Initial cancel and progress support
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 23 Feb 2011 22:36:28 +0100
parents 7567f4a42fe5
children d5268ca7715b
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/FilterByteChannel.java	Tue Feb 22 15:49:26 2011 +0100
+++ b/src/org/tmatesoft/hg/internal/FilterByteChannel.java	Wed Feb 23 22:36:28 2011 +0100
@@ -16,10 +16,12 @@
  */
 package org.tmatesoft.hg.internal;
 
+import java.io.IOException;
 import java.nio.ByteBuffer;
 import java.util.Collection;
 
 import org.tmatesoft.hg.util.ByteChannel;
+import org.tmatesoft.hg.util.CancelledException;
 
 /**
  *
@@ -38,7 +40,7 @@
 		filters = filtersToApply.toArray(new Filter[filtersToApply.size()]);
 	}
 
-	public int write(ByteBuffer buffer) throws Exception {
+	public int write(ByteBuffer buffer) throws IOException, CancelledException {
 		final int srcPos = buffer.position();
 		ByteBuffer processed = buffer;
 		for (Filter f : filters) {